Azure
beginner
20-25 minutes

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:

  1. Build it yourself — this track + our SaaS Starter template
  2. 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?

StrengthDescription
Enterprise integrationBest for Microsoft stack (.NET, Windows)
Hybrid cloudStrong on-premises integration
Developer toolsVS Code, GitHub, Visual Studio integration
Free tier$200 credit + 12 months free services
App ServiceExcellent PaaS for web apps

Azure vs Other Clouds

FeatureAzureAWSGCP
Free tier$200 + 12 months12 months$300 + always-free
PaaS focusApp Service (excellent)Elastic BeanstalkCloud Run
.NET supportNativeGoodGood
EnterpriseStrongStrongGrowing

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

  1. Enter your phone number for verification
  2. Receive and enter verification code
  3. 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

SectionWhat It's For
HomeDashboard and quick access
All servicesBrowse all Azure services
Resource groupsContainers for your resources
SubscriptionsBilling and access management
Cost ManagementMonitor spending
Azure Active DirectoryIdentity 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:

RegionLocationUse Case
eastusVirginia, USAUS East, low cost
westus2Washington, USAUS West
westeuropeNetherlandsEuropean users
northeuropeIrelandGDPR-friendly
eastasiaHong KongAsian users
australiaeastSydneyAustralian users

Step 4: Create Your First Resource Group

Via Portal

  1. Search for "Resource groups" in the portal
  2. Click + Create
  3. Configure:
    • Subscription: Your subscription
    • Resource group: myapp-dev
    • Region: East US (or nearest)
  4. 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

  1. Search for "Cost Management" in the portal
  2. Click Cost analysis
  3. See spending by:
    • Service
    • Resource group
    • Time period

5.2 Create a Budget

  1. In Cost Management, click Budgets
  2. Click + Add
  3. Configure:
    • Name: Monthly Budget
    • Reset period: Monthly
    • Amount: Your limit (e.g., $25)
  4. Set alert thresholds:
    • 50% - Early warning
    • 80% - Approaching limit
    • 100% - At budget
  5. 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:

ServiceFree Amount
App Service10 web apps (F1 tier)
Virtual Machines750 hours B1S (Linux/Windows)
Azure SQL250 GB S0 database
Blob Storage5 GB
Cosmos DB25 GB + 1000 RU/s
Azure Functions1M requests/month

Always Free:

ServiceFree Amount
App Service10 apps (F1/D1 tier)
Azure Functions1M executions/month
Azure DevOps5 users, unlimited private repos
Bandwidth5 GB egress/month

Common Costs

ServiceTypical 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:

RolePermissions
OwnerFull access + manage access
ContributorCreate/manage resources
ReaderView only
User Access AdminManage 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

  1. Go to your resource group
  2. Click Access control (IAM)
  3. Click + Add → Add role assignment
  4. Select role and user/group

Step 9: Set Up Azure Active Directory (Optional)

For team/organization use:

  1. Search for "Azure Active Directory"
  2. Create users or sync from on-premises AD
  3. Set up groups for team access
  4. Enable Multi-Factor Authentication (MFA)

Step 10: Verify Your Setup

Check Subscription

  1. Go to Subscriptions
  2. Verify status is "Active"
  3. Check remaining credits

Check Resource Group

  1. Go to Resource groups
  2. Verify your group exists
  3. Check region is correct

Check Cost Management

  1. Go to Cost Management
  2. Verify budget is created
  3. Check alert emails are configured

Common Setup Issues

"Subscription not found"

  1. Check you're signed in with correct account
  2. Verify subscription is active
  3. 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"

  1. Check your role assignment
  2. Verify you're in the correct subscription
  3. 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:

bash
az 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.