AZ-900Chapter 31 of 127Objective 3.1

Azure Cost Management and Billing

This chapter covers Azure Cost Management and Billing, a critical area for understanding how to plan, monitor, and control your cloud spending. On the AZ-900 exam, this objective falls under 'Azure Management and Governance' and carries approximately 10-15% weight. Mastering cost management is essential because cloud costs can spiral without proper controls, and the exam tests your ability to identify tools like Azure Cost Management, budgets, alerts, and pricing calculators. We will explore the core concepts, step-by-step processes, real-world scenarios, and common exam traps to ensure you are fully prepared.

25 min read
Beginner
Updated May 31, 2026

Your Cloud Budget as a Business Trip

Imagine you are planning a business trip for your company. You have a total budget approved by your finance department. You need to book flights, hotels, meals, and transportation. Each expense category has its own spending limit: flights cannot exceed $800, hotels $500 per night, and so on. You set up alerts: if flight costs reach 80% of the limit, you get an email. If you exceed any limit, the trip is flagged for review. At the end of the trip, you reconcile all receipts with your budget. Azure Cost Management works similarly. Your Azure subscription has a total budget (like the trip budget). You can create budgets for specific services (like virtual machines) or resource groups (like departments). Cost alerts notify you when spending reaches a threshold. Azure invoices provide a detailed breakdown, similar to an expense report. Just as you can adjust future trips based on past spending, Azure allows you to analyze historical costs to forecast future spending and optimize resources. The key mechanism: budgets track actual costs against predefined limits, alerts trigger actions (like email or automation), and invoices aggregate costs for reconciliation. This mirrors how a business manages travel expenses, making the abstract cloud billing concept tangible for non-technical managers.

How It Actually Works

What is Azure Cost Management and Why It Matters

Azure Cost Management is a suite of tools that help you plan, analyze, and optimize your cloud spending. The business problem it solves is straightforward: in an on-premises data center, you buy hardware upfront and know your costs. In the cloud, you pay as you go, which can lead to unpredictable bills if resources are left running or over-provisioned. Cost Management gives you visibility into where money is spent, enables you to set budgets, and provides recommendations to reduce costs. For AZ-900, you need to understand the key components: Cost Analysis, Budgets, Alerts, Recommendations, and Invoices.

How It Works: The Mechanism Step by Step

Azure Cost Management works by ingesting usage and billing data from your subscriptions. Every time you use a service, Azure meters the consumption (e.g., VM hours, storage GB, data transfer) and records it. This data flows into the Cost Management engine, which aggregates it and presents it in dashboards. You can filter by resource, resource group, service, or tag. Budgets allow you to set spending limits; when costs exceed a threshold, alerts fire. Recommendations are generated by analyzing your usage patterns and suggesting rightsizing, reserved instances, or shutting down idle resources. The entire process is near real-time, with data typically available within 8-24 hours.

Key Components and Pricing Models

- Cost Analysis: A visual dashboard to explore and break down costs by various dimensions (subscription, resource group, service, location, tag). You can view accumulated costs, forecasted costs, and budget vs. actual. - Budgets: Define spending limits at subscription or resource group scope. You can set multiple thresholds (e.g., 50%, 90%, 100%) and trigger email alerts or automation runbooks. - Alerts: Notifications when costs exceed budget thresholds or anomaly detection. Alerts can be sent to email distribution lists or integrated with Azure Monitor. - Recommendations: Azure Advisor provides cost optimization recommendations like right-sizing VMs, purchasing reserved instances, or deleting unattached disks. - Invoices: Monthly billing statements that summarize charges. You can download invoices from the Azure portal. - Pricing Models: - *Pay-as-you-go*: Pay for what you use, no upfront commitment. - *Reserved Instances*: Prepay for 1 or 3 years of VM or SQL Database capacity for up to 72% discount. - *Azure Hybrid Benefit*: Use existing on-premises Windows Server or SQL Server licenses with Software Assurance for discounted rates. - *Spot VMs*: Use unused Azure capacity at up to 90% discount, but VMs can be evicted at any time.

Comparison to On-Premises

In an on-premises environment, costs are primarily capital expenditures (CapEx) — you buy servers, networking, and software licenses upfront. Operational costs (OpEx) include power, cooling, and staff. Budgeting is based on fixed depreciation schedules. In Azure, costs are largely operational (OpEx) — you pay monthly based on consumption. This shift requires new budgeting practices: instead of a single large purchase, you have many small recurring charges. Cost Management gives you the granularity to track these charges, something on-premises lacks without detailed metering.

Azure Portal and CLI Touchpoints

You can access Cost Management in the Azure portal by searching for "Cost Management + Billing". Key blades include: - Cost Management: Overview, Cost Analysis, Budgets, Alerts, Recommendations. - Billing: Invoices, Payment methods, Billing accounts.

Using Azure CLI, you can list costs with:

az consumption usage list --billing-period-name 202401

Create a budget:

az consumption budget create --budget-name "MonthlyBudget" --amount 1000 --time-grain monthly --time-period start-date=2024-01-01 end-date=2024-12-31 --category cost

These commands are useful for automation but not heavily tested on AZ-900.

Concrete Business Scenarios

Startup: A startup uses Cost Analysis to monitor monthly spending across dev/test subscriptions. They set a budget of $500/month and receive alerts at 80% and 100%. When costs spike due to a new deployment, they receive an alert and immediately investigate.

Enterprise: A large company uses tags to track costs by department (e.g., Marketing, Engineering). They create separate budgets for each department and assign budget owners who receive alerts. This prevents any single team from overspending.

Retail: A retail company uses Azure Advisor recommendations to identify underutilized VMs during off-peak seasons. They right-size VMs and purchase reserved instances for baseline capacity, saving 40% annually.

Walk-Through

1

Access Cost Management + Billing

Navigate to the Azure portal (portal.azure.com). In the search bar, type 'Cost Management + Billing' and select the service. This opens the main billing and cost management hub. From here, you can manage multiple billing accounts, subscriptions, and invoices. For beginners, this is the entry point to all cost-related activities. The portal shows an overview with current month-to-date costs, forecasted costs, and any active budgets. It's important to note that you need appropriate permissions (e.g., Cost Management Reader) to view data.

2

Explore Cost Analysis

Click on 'Cost Analysis' under the 'Cost Management' section. This opens a powerful dashboard where you can visualize your costs. By default, it shows accumulated costs for the current month. You can change the view to daily, monthly, or custom date ranges. Use filters like subscription, resource group, service name, or location to drill down. For example, filter by 'Virtual Machines' to see how much you spend on compute. The dashboard also shows a forecast line based on historical trends. This step is critical for understanding where your money goes.

3

Create a Budget

In the Cost Management blade, select 'Budgets' and click '+ Add'. A budget creation form opens. Set the scope (e.g., subscription or resource group), name, amount, and time period (monthly, quarterly, yearly). You can also set conditions: for example, when costs reach 80% of the budget, send an email alert. You can add multiple alert rules. Behind the scenes, Azure evaluates costs every few hours and compares them to your budget. When a threshold is met, an alert is triggered. Budgets do not automatically stop resources; they only notify you. To automate actions, you can use Azure Automation runbooks or Logic Apps.

4

Configure Cost Alerts

Alerts are configured as part of budget creation or separately under 'Alerts'. You define a threshold percentage (e.g., 50%, 90%, 100%) and an action group (email, SMS, webhook). Action groups can include multiple recipients. For example, you can set an alert at 90% to email the finance team. Azure checks cost data against thresholds periodically. If costs exceed 100%, an alert fires. Alerts are essential for proactive cost management. Common mistake: candidates think alerts automatically stop resources; they do not unless you configure automation.

5

Review and Act on Recommendations

Under 'Advisor recommendations' in Cost Management, you'll see suggestions to optimize costs. Examples: 'Right-size or shut down underutilized VMs', 'Purchase reserved instances for consistent workloads', 'Delete unattached managed disks'. Each recommendation includes estimated savings. You can click to implement directly. Azure Advisor analyzes your usage over the past 30 days and compares to optimal configurations. This step is key for continuous cost optimization. On the exam, remember that recommendations are not automatic; you must review and apply them.

What This Looks Like on the Job

Scenario 1: A mid-sized e-commerce company runs its website on Azure VMs. During Black Friday, they scale up to handle traffic, but forget to scale down afterward. Their monthly bill doubles. With Cost Management, they set up a budget of $10,000/month with alerts at 80% and 100%. When costs spike, they receive an email and can immediately investigate. They also enable Azure Advisor recommendations, which suggest right-sizing VMs during low-traffic periods. The team configures an automation runbook to shut down non-production VMs after hours, saving 30% monthly.

Scenario 2: A global enterprise has multiple departments sharing an Azure subscription. Costs are chaotic. They implement resource tagging (e.g., Department: Marketing, Engineering) and use Cost Analysis to filter by tag. They create separate budgets for each department and assign budget owners. Each owner receives alerts when their department approaches the limit. This brings accountability and prevents any single team from overspending. They also use Azure Policy to enforce tagging, ensuring all resources are tagged. Without tagging, cost allocation is impossible, leading to disputes.

Scenario 3: A startup uses Azure SQL Database and Storage for a mobile app. They are on pay-as-you-go and costs are unpredictable. They use the Azure Pricing Calculator to estimate costs before deployment. After three months, they analyze usage and realize they can save by purchasing reserved instances for their SQL Database. They commit to a one-year reserved instance, reducing costs by 40%. They also set up a monthly budget of $500 with alerts. When costs exceed 90%, they receive an alert and optimize. Common pitfall: forgetting to include data transfer costs in the budget, which can surprise teams.

What goes wrong: Without budgets, teams can run up huge bills. Without tags, cost allocation is impossible. Without alerts, cost spikes go unnoticed until the invoice arrives. Without recommendations, you miss savings. Proper setup prevents these issues.

How AZ-900 Actually Tests This

This section targets AZ-900 objective 'Describe cost management in Azure' (sub-objective of 'Describe Azure management and governance'). The exam focuses on your ability to identify the correct tools and concepts, not deep configuration. The three most common wrong answers candidates choose are: 1. 'Budgets automatically stop resources when exceeded.' Reality: Budgets only send alerts; they do not take action unless you configure automation. 2. 'Cost Management is only available for pay-as-you-go subscriptions.' Reality: Cost Management works for all subscription types, including Enterprise Agreements and Microsoft Customer Agreements. 3. 'Azure Advisor only provides security recommendations.' Reality: Advisor provides recommendations across five categories: cost, security, reliability, performance, and operational excellence.

Specific terms that appear verbatim: 'Cost Analysis', 'Budgets', 'Alerts', 'Azure Advisor', 'Reserved Instances', 'Azure Hybrid Benefit', 'TCO Calculator', 'Pricing Calculator'. Know the difference: Pricing Calculator estimates costs before deployment; TCO Calculator compares on-premises vs. Azure costs.

Edge cases: The exam loves to test that budgets can be set at subscription or resource group scope, not at resource level. Also, alerts can be based on actual cost or forecasted cost. Another tricky distinction: 'Cost Management' is the tool for analyzing costs, while 'Billing' deals with invoices and payments.

Memory trick: 'BARC' – Budgets, Alerts, Recommendations, Cost Analysis. Remember that budgets and alerts work together, while recommendations come from Advisor. For the decision tree: If asked about controlling spending, think budgets + alerts. If asked about analyzing costs, think Cost Analysis. If asked about saving money, think Advisor recommendations or reserved instances.

Key Takeaways

Azure Cost Management provides tools for cost analysis, budgeting, alerts, and optimization recommendations.

Budgets allow you to set spending limits at subscription or resource group scope and trigger alerts at thresholds (e.g., 80%, 100%).

Cost Alerts notify you via email or action groups; they do not automatically stop resources.

Azure Advisor provides cost recommendations such as right-sizing VMs, purchasing reserved instances, and deleting unattached disks.

Reserved Instances offer up to 72% discount for 1- or 3-year commitments on compute services.

Azure Hybrid Benefit allows using on-premises Windows Server or SQL Server licenses with Software Assurance for discounted rates in Azure.

The Pricing Calculator estimates costs before deployment; the TCO Calculator compares on-premises vs. Azure total cost of ownership.

Resource tagging is essential for cost allocation and filtering in Cost Analysis.

Cost Management data is available within 8-24 hours of usage.

You need appropriate permissions (e.g., Cost Management Reader) to view cost data.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Pricing Calculator

Estimates monthly costs for specific Azure services

Used before deployment to forecast spending

Allows you to configure service tiers, regions, and quantities

Output is a detailed cost breakdown per service

Free to use, no sign-in required

TCO Calculator

Compares on-premises costs to Azure costs

Used for migration planning and business cases

Requires input of current on-premises infrastructure details

Output includes cost comparison over 1-5 years

Includes hidden costs like power, cooling, and IT labor

Watch Out for These

Mistake

Budgets automatically stop resources when exceeded.

Correct

Budgets only trigger alerts; they do not stop resources. To automate actions, you must configure Azure Automation runbooks or Logic Apps that respond to budget alerts.

Mistake

Cost Management is only available for pay-as-you-go subscriptions.

Correct

Cost Management works with all subscription types, including Enterprise Agreement, Microsoft Customer Agreement, and Cloud Solution Provider (CSP) subscriptions.

Mistake

Azure Advisor only provides cost recommendations.

Correct

Azure Advisor provides recommendations across five categories: cost, security, reliability, performance, and operational excellence. Cost is just one category.

Mistake

Reserved Instances are available for all Azure services.

Correct

Reserved Instances are primarily for compute services like Virtual Machines, SQL Database, and App Service. Not all services offer reserved capacity.

Mistake

The Pricing Calculator and TCO Calculator are the same.

Correct

The Pricing Calculator estimates costs for deploying resources in Azure. The TCO Calculator compares the total cost of ownership of on-premises infrastructure versus Azure, including hardware, software, labor, and energy costs.

Frequently Asked Questions

What is the difference between Cost Management and Billing?

Cost Management focuses on analyzing, budgeting, and optimizing spending. Billing handles invoices, payment methods, and billing accounts. In the portal, they are combined under 'Cost Management + Billing'. For the exam, know that Cost Management is for cost analysis and budgets, while Billing is for invoices and payments.

Can budgets automatically shut down resources?

No, budgets only send alerts when costs exceed thresholds. To automatically shut down resources, you need to configure an automation runbook or Logic App that triggers on the budget alert. The exam tests that budgets do not take action by themselves.

What is the difference between the Pricing Calculator and TCO Calculator?

The Pricing Calculator estimates the monthly cost of running specific Azure services. The TCO Calculator compares the total cost of owning on-premises infrastructure versus Azure, including hardware, software, labor, and energy. Use Pricing Calculator for new deployments, TCO Calculator for migration decisions.

How do I allocate costs to different departments?

Use resource tags. Assign tags like 'Department: Marketing' to resources. Then in Cost Analysis, filter by tag to see costs per department. You can also create budgets per tag. Azure Policy can enforce tagging. The exam emphasizes tagging as a cost allocation method.

What are Azure Reserved Instances?

Reserved Instances allow you to prepay for 1 or 3 years of compute capacity (VMs, SQL Database) at a discount of up to 72% compared to pay-as-you-go. They are best for steady-state workloads. You can exchange or cancel reserved instances with some limitations. The exam tests that they provide significant savings.

What is Azure Hybrid Benefit?

Azure Hybrid Benefit lets you use your existing on-premises Windows Server and SQL Server licenses with Software Assurance to get discounted rates on Azure VMs and SQL Database. It can save up to 40% on Windows VMs and up to 55% on SQL Database. The exam tests that it requires Software Assurance.

How often is cost data updated in Cost Management?

Cost data is typically available within 8-24 hours of usage. It is not real-time. This is important for exam questions about alert delays. Budget alerts also check periodically, so there may be a slight delay.

Terms Worth Knowing

Ready to put this to the test?

You've just covered Azure Cost Management and Billing — now see how well it sticks with free AZ-900 practice questions. Full explanations included, no account needed.

Done with this chapter?