AZ-900 Learning Portal
Objective 3.1 25 minhigh prioritycost-managementpricing-calculatorresource-tagsbudgetsspot-vmsreservations

3.1 — Describe cost management in Azure

Azure costs are driven by resource type, consumption, geography, and subscription type; the Pricing Calculator estimates pre-deployment costs while Microsoft Cost Management tracks and controls live spending.

Concept — What & Why

Factors that Affect Costs

Azure uses a consumption-based model — you pay only for what you use. Several factors drive the final bill:

FactorHow it affects cost
Resource typeEach service has its own pricing dimensions (VM size, storage tier, database SKU)
ConsumptionMore usage = more cost. Reservations and savings plans offer discounts for predictable workloads
MaintenanceOrphaned resources (e.g., disks left after a VM is deleted) still accrue charges
Geography (Region)Power, labor, and tax costs differ by region — the same resource may cost more in one region
Subscription typeFree trial includes credits and 12 months of popular free services; paid tiers differ in pricing
Azure MarketplaceThird-party solutions include both Azure infrastructure charges and the vendor's own licensing fee

Network traffic (bandwidth) is also a cost factor. Azure uses billing zones — geographic groupings of regions — to price data egress. Inbound data is generally free; outbound data is billed by zone.


Pricing Options for Compute

The default model is Pay-as-you-goNo commitment; pay for actual usage each billing cycle. The default Azure pricing model — most flexible but highest per-unit cost. — most flexible but highest per-unit cost. For predictable, always-on workloads, Azure ReservationsCommit to a specific resource for 1 or 3 years in exchange for a significant discount (up to ~72% vs. pay-as-you-go). Best for predictable, always-on workloads. offer up to ~72% savings by committing to a specific resource for 1 or 3 years. For more flexibility across VM families and regions, the Azure Savings Plan for computeCommit to an hourly spend amount across eligible compute services for 1 or 3 years; Azure applies the best available price automatically. More flexible than reservations since it applies across VM families and regions. lets you commit to an hourly spend amount and Azure applies the best available price automatically. For interruptible batch workloads, Spot Virtual MachinesUse unused Azure capacity at steep discounts (up to 90%), but workloads can be evicted with 30 seconds notice when Azure needs capacity back. Best for fault-tolerant, interruptible workloads like batch jobs. use unused Azure capacity at up to 90% discount — but can be evicted with 30 seconds notice.


Pricing Calculator vs. TCO Calculator

Note: As of the current Microsoft Learn content, the TCO calculator has been retired. The Pricing Calculator is now the primary estimation tool.

ToolPurposeWho uses it
Pricing calculatorEstimate the cost of Azure resources you plan to provision. Produces monthly/annual estimates for any combination of services.Anyone planning a new Azure deployment
TCO calculator (retired)Was used to compare on-premises infrastructure costs against an Azure migration scenarioInfrastructure architects evaluating migration business cases

The Pricing calculator is for information purposes only — nothing is provisioned, and you are not charged for anything you configure in the tool.


Microsoft Cost Management

Microsoft Cost Management is a built-in Azure service with three key capabilities:

CapabilityDescription
Cost analysisVisualize and explore costs by subscription, resource group, service, region, or tag. Spot trends over billing cycles.
Cost alertsAutomatically notify stakeholders when spending reaches defined thresholds. Three alert types: budget alerts, credit alerts (EA only), and department spending quota alerts (EA only).
BudgetsSet spending limits by subscription, resource group, or service type. Budgets can trigger automation (e.g., shut down nonproduction resources) when thresholds are hit.

Credit alerts fire at 90% and 100% of Azure credit balance for Enterprise Agreement customers.


Resource Tags

Resource tagsName-value pairs attached to Azure resources as metadata. They do not affect functionality but enable cost allocation, governance, automation, and operational classification of resources. are name-value pairs attached as metadata to resources — they have no effect on functionality but enable cost allocation, governance, and operational classification across your Azure estate:

Use caseExample tag
Resource managementOwner: teamA
Cost management and optimizationCostCenter: CC-1234
Operations managementImpact: Mission-critical
SecurityDataClassification: Confidential
Governance and complianceRegulation: ISO27001
Workload optimization and automationAppName: OrderService

Important tag behaviors:

  • Tags are not inherited — a tag on a resource group does not automatically appear on its child resources.
  • Azure Policy can enforce required tags (deny resource creation if CostCenter is missing) and can auto-add missing tags.
  • Tags can be managed from the Azure portal, PowerShell, Azure CLI, ARM templates, or the REST API.

Deep Dive — How It Works

Cost Factors — Impact Comparison

FactorControllable by customer?Cost reduction strategy
Resource typeYes (choose service)Use PaaS/Serverless instead of IaaS where possible
ConsumptionYesRight-size VMs; use autoscaling; delete idle resources
MaintenanceYesDelete orphaned disks, IPs, NICs after VM deletion
GeographyYes (choose region)Deploy to lower-cost regions for non-latency-sensitive workloads
Subscription typeLimitedUse free tier for dev/test; EA for enterprise discounts
MarketplaceYes (choose offering)Evaluate BYOL vs. pay-as-you-go for third-party software

Compute Pricing Options — Trade-off Matrix

OptionCommitmentDiscountEviction riskBest for
Pay-as-you-goNoneNoneNoneVariable, unpredictable workloads
Reservations1 or 3 yearsUp to ~72%NoneStable, always-on workloads
Savings Plan1 or 3 yearsUp to ~65%NoneFlexible compute, mixed VM types
Spot VMsNoneUp to ~90%Yes (30-sec notice)Batch, fault-tolerant, stateless

Budget Alerts vs. Credit Alerts vs. Quota Alerts

Alert typeWho it applies toTrigger condition
Budget alertAll customersSpending reaches % of user-defined budget
Credit alertEnterprise Agreement (EA) customersAzure credit balance reaches 90% or 100%
Department quota alertEA customers with department quotasDepartment spending reaches quota threshold

Critical fact: A budget does NOT automatically block spending. It generates an alert and can optionally trigger an automation action (e.g., shut down VMs). You must configure the action group to stop resources.


Resource Tags — Governance and Cost Integration

Tags integrate with cost tools:

  • Cost analysis — filter and group costs by tag (e.g., view all spending for CostCenter: CC-1234).
  • Azure Policy — enforce tag presence; deny resource creation if required tags are missing.
  • Chargeback/showback — allocate cloud costs to business units using tag-based filtering in Cost Management.

Hands-On Lab

Explore Cost Tools in Azure

Step 1 — Use the Azure Pricing Calculator

  1. Navigate to azure.microsoft.com/pricing/calculator (no sign-in required).
  2. Search for Virtual Machines and add a D2s v5 instance.
  3. Change the Region from East US to West Europe — observe the price change (geography factor).
  4. Switch License to Azure Hybrid Benefit (if you have Windows Server licenses) — observe the discount.
  5. Change Payment option to 1 Year Reserved — compare the savings vs. pay-as-you-go.

Step 2 — Explore Cost Analysis

  1. Sign in to portal.azure.com.
  2. Search for Cost Management → open Cost Management + Billing.
  3. Navigate to Cost Management → Cost analysis.
  4. Use the Group by dropdown to slice costs by Service, Region, and Resource group.
  5. Change the chart to a daily view — spot any spending spikes.

Step 3 — Create a Budget Alert

  1. In Cost Management → click Budgets → + Add.
  2. Set a monthly budget amount (e.g., $50).
  3. Add an alert condition at 80% and enter your email in the action group.
  4. Click Create — you now have a cost predictability control.

Step 4 — Apply a Tag to a Resource

  1. Navigate to any resource (e.g., a storage account) in the portal.
  2. Click Tags in the left navigation under Settings.
  3. Add a tag: Name = CostCenter, Value = CC-Demo.
  4. Save — observe that sibling resources in the same resource group do NOT automatically inherit this tag.

Exam Angle — What AZ-900 Tests

AZ-900 Exam Focus

Exam Trap

"Use the TCO calculator to estimate the cost of new Azure resources" — Wrong. The TCO calculator was designed to compare on-premises vs. Azure migration costs (and has been retired). The Pricing Calculator is used to estimate the cost of new Azure resources.

Exam Trap

"Tags are inherited from resource groups to child resources" — Wrong. Tags are NOT inherited by default. You must apply tags explicitly at each level, or use Azure Policy to enforce inheritance-like behavior.

Exam Trap

"A budget in Cost Management automatically blocks spending when the limit is reached" — Wrong. A budget generates alerts and can optionally trigger automation actions; it does not block resource usage by itself unless you configure an action group to stop resources.

Exam Trap

"Spot VMs are guaranteed not to be interrupted if you pay more" — Wrong. Spot VMs can always be evicted when Azure needs capacity back, regardless of your spend level. They offer no SLA for availability.

Exam Tip

Pricing Calculator = pre-deployment estimation. Cost Management = live spending tracking. These tools are frequently swapped in wrong-answer distractors. Know which does which.

Must Memorize

Credit alerts = Enterprise Agreement only, fire at 90% and 100% of credit balance
Budget alerts = all customers, fire at user-defined % of user-defined budget
Tags = not inherited, not functional, managed by Policy for enforcement


Question — click to flip

Q: What is the difference between the Azure Pricing Calculator and Microsoft Cost Management?

Question — click to flip

Q: Are tags inherited from a resource group to its child resources?

Question — click to flip

Q: What does a Cost Management budget do when the spending threshold is reached?

Question — click to flip

Q: What are Spot Virtual Machines and what is their key risk?

Question — click to flip

Q: Which type of Cost Management alert is specific to Enterprise Agreement customers and fires at 90% of the Azure credit balance?

Question — click to flip

Q: Name three factors that affect Azure costs.


Sources & Further Reading