Azure Account Setup
Create your Azure account, understand the portal, set up billing alerts, and navigate Azure's interface.
What you'll accomplish
A configured Azure account with billing alerts and understanding of the portal
Prerequisites
- Microsoft account (or create one)
- Credit card (for verification, free tier available)
Before You Start: What Are You Deploying?
This track teaches Azure deployment mechanics. Before diving in, consider what you're deploying:
Deploying a frontend/static site? Simpler platforms like Vercel may be all you need.
Deploying a complete SaaS product? You'll also need:
- User authentication and sessions
- Subscription billing (Stripe integration)
- Transactional email and notifications
- Multi-tenant data architecture
Your options for the backend:
- Build it yourself — this track + our SaaS Starter template
- Use a backend platform — services like StackForDevs provide auth, billing, and notifications as APIs, so you only deploy your frontend
This track focuses on deployment infrastructure. Make sure you know what you're deploying before proceeding.
What is Microsoft Azure?
Azure is Microsoft's cloud computing platform, offering 200+ services including:
- App Service - Managed web app hosting (our recommended path)
- Azure Container Apps - Serverless containers
- Azure Functions - Serverless functions
- Virtual Machines - Full server control
- Azure SQL - Managed databases
- Blob Storage - File/object storage
Your Application
↓
Microsoft Azure
↓
60+ Azure Regions Worldwide
Why Choose Azure?
| Strength | Description |
|---|---|
| Enterprise integration | Best for Microsoft stack (.NET, Windows) |
| Hybrid cloud | Strong on-premises integration |
| Developer tools | VS Code, GitHub, Visual Studio integration |
| Free tier | $200 credit + 12 months free services |
| App Service | Excellent PaaS for web apps |
Azure vs Other Clouds
| Feature | Azure | AWS | GCP |
|---|---|---|---|
| Free tier | $200 + 12 months | 12 months | $300 + always-free |
| PaaS focus | App Service (excellent) | Elastic Beanstalk | Cloud Run |
| .NET support | Native | Good | Good |
| Enterprise | Strong | Strong | Growing |
Step 1: Create Your Azure Account
1.1 Go to Azure
Visit azure.microsoft.com/free and click Start free.
1.2 Sign In with Microsoft Account
Use an existing Microsoft account or create one. This becomes your Azure identity.
Note
For work projects, consider using a dedicated Microsoft account or your organization's Azure AD.
1.3 Identity Verification
- Enter your phone number for verification
- Receive and enter verification code
- Enter credit card for identity verification
Note
You won't be charged until you upgrade and explicitly exceed free tier limits. The card is for verification only.
1.4 Accept Terms and Sign Up
Review and accept the subscription agreement.
1.5 Welcome to Azure
You now have:
- $200 free credit for 30 days
- 12 months of popular free services
- Always-free services (55+ services)
Step 2: Understand the Azure Portal
2.1 The Portal Dashboard
Access the portal at portal.azure.com.
Key areas:
┌────────────────────────────────────────────────────────────────┐
│ ☰ Menu │ Search bar │ ? ⚙ 🔔 User │
├────────────────────────────────────────────────────────────────┤
│ Favorites │ │
│ ├─ All services │ Dashboard / Resource View │
│ ├─ Resource groups │ │
│ ├─ App Services │ │
│ ├─ Subscriptions │ │
│ └─ Cost Management │ │
└────────────────────────────────────────────────────────────────┘
2.2 Key Portal Sections
| Section | What It's For |
|---|---|
| Home | Dashboard and quick access |
| All services | Browse all Azure services |
| Resource groups | Containers for your resources |
| Subscriptions | Billing and access management |
| Cost Management | Monitor spending |
| Azure Active Directory | Identity management |
2.3 Navigation Tips
- Use the search bar (top) for quick access to any service
- Pin favorites to the left sidebar
- Use breadcrumbs to navigate back
- Resource groups help organize related resources
Step 3: Understand Azure Organization
Subscriptions
A Subscription is a billing container:
- Ties to a payment method
- Has spending limits
- Contains resource groups
- Can have multiple (dev, staging, prod)
bash# List subscriptions (after installing Azure CLI) az account list --output table
Resource Groups
A Resource Group is a container for related resources:
- Web app + database + storage = one resource group
- Delete the group = delete all resources
- Apply policies at group level
Subscription
└── Resource Group: myapp-production
├── App Service: myapp-web
├── Azure SQL: myapp-db
└── Storage Account: myappstorage
Regions
Azure has 60+ regions worldwide. Choose based on:
- Proximity to users - Lower latency
- Compliance - Data residency requirements
- Service availability - Not all services everywhere
- Cost - Varies by region
Common regions:
| Region | Location | Use Case |
|---|---|---|
eastus | Virginia, USA | US East, low cost |
westus2 | Washington, USA | US West |
westeurope | Netherlands | European users |
northeurope | Ireland | GDPR-friendly |
eastasia | Hong Kong | Asian users |
australiaeast | Sydney | Australian users |
Step 4: Create Your First Resource Group
Via Portal
- Search for "Resource groups" in the portal
- Click + Create
- Configure:
- Subscription: Your subscription
- Resource group:
myapp-dev - Region:
East US(or nearest)
- Click Review + create → Create
Via CLI (Preview)
bash# Create resource group az group create --name myapp-dev --location eastus
Naming Conventions
{company}-{app}-{environment}-{resource-type}
Examples:
- contoso-webapp-prod-rg (resource group)
- contoso-webapp-prod-app (app service)
- contoso-webapp-prod-sql (database)
Step 5: Set Up Cost Management
5.1 View Current Spending
- Search for "Cost Management" in the portal
- Click Cost analysis
- See spending by:
- Service
- Resource group
- Time period
5.2 Create a Budget
- In Cost Management, click Budgets
- Click + Add
- Configure:
- Name:
Monthly Budget - Reset period: Monthly
- Amount: Your limit (e.g., $25)
- Name:
- Set alert thresholds:
- 50% - Early warning
- 80% - Approaching limit
- 100% - At budget
- Add notification email
5.3 Spending Limits
The free account has automatic spending limits:
- Uses $200 credit first
- Services stop when credit exhausted
- Upgrade required to continue (pay-as-you-go)
Note
After upgrading to pay-as-you-go, set budgets immediately. There's no automatic spending cap.
Step 6: Understand Azure Pricing
Free Tier Highlights
First 30 days ($200 credit):
- Explore any Azure service
- Credit applies to all services
12 Months Free:
| Service | Free Amount |
|---|---|
| App Service | 10 web apps (F1 tier) |
| Virtual Machines | 750 hours B1S (Linux/Windows) |
| Azure SQL | 250 GB S0 database |
| Blob Storage | 5 GB |
| Cosmos DB | 25 GB + 1000 RU/s |
| Azure Functions | 1M requests/month |
Always Free:
| Service | Free Amount |
|---|---|
| App Service | 10 apps (F1/D1 tier) |
| Azure Functions | 1M executions/month |
| Azure DevOps | 5 users, unlimited private repos |
| Bandwidth | 5 GB egress/month |
Common Costs
| Service | Typical Cost |
|---|---|
| App Service B1 | ~$13/month |
| App Service S1 | ~$73/month |
| Azure SQL Basic | ~$5/month |
| VM B1S | ~$8/month |
| Blob Storage | $0.02/GB/month |
Step 7: Enable Required Resource Providers
Azure services must be registered in your subscription:
bash# Register common providers az provider register --namespace Microsoft.Web az provider register --namespace Microsoft.Storage az provider register --namespace Microsoft.Sql az provider register --namespace Microsoft.ContainerRegistry # Check registration status az provider show --namespace Microsoft.Web --query "registrationState"
Most providers register automatically when you first use a service.
Step 8: Understand Azure RBAC
Role-Based Access Control
Control who can do what:
| Role | Permissions |
|---|---|
| Owner | Full access + manage access |
| Contributor | Create/manage resources |
| Reader | View only |
| User Access Admin | Manage user access |
Service-Specific Roles
- Website Contributor - Manage web apps
- SQL DB Contributor - Manage SQL databases
- Storage Blob Data Contributor - Read/write blobs
Assign Roles
- Go to your resource group
- Click Access control (IAM)
- Click + Add → Add role assignment
- Select role and user/group
Step 9: Set Up Azure Active Directory (Optional)
For team/organization use:
- Search for "Azure Active Directory"
- Create users or sync from on-premises AD
- Set up groups for team access
- Enable Multi-Factor Authentication (MFA)
Step 10: Verify Your Setup
Check Subscription
- Go to Subscriptions
- Verify status is "Active"
- Check remaining credits
Check Resource Group
- Go to Resource groups
- Verify your group exists
- Check region is correct
Check Cost Management
- Go to Cost Management
- Verify budget is created
- Check alert emails are configured
Common Setup Issues
"Subscription not found"
- Check you're signed in with correct account
- Verify subscription is active
- Check if subscription has spending limit reached
"Resource provider not registered"
bash# Register the provider az provider register --namespace Microsoft.Web # Wait for registration (can take a few minutes) az provider show --namespace Microsoft.Web --query "registrationState"
"Access denied"
- Check your role assignment
- Verify you're in the correct subscription
- Ask Owner to grant appropriate role
Azure CLI Preview
Install the Azure CLI for command-line management:
bash# macOS brew install azure-cli # Windows winget install Microsoft.AzureCLI # Linux (Ubuntu/Debian) curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Login:
bashaz login
This opens a browser for authentication.
Note
Checkpoint: Verify you can access the Azure Portal, your subscription is active, and you've created a resource group with a budget alert configured.