Subscriptions and cost management
Track spend with cost analysis, warn early with budgets, act on Azure Advisor, and pay less with reservations and licence benefits.
In this lesson you'll learn
- Cost analysis by scope, service and tag
- How budgets and alerts work, and what they cannot do
- Azure Advisor recommendations
- Reservations, savings plans and Azure Hybrid Benefit
1. See where the money goes
New to Azure billing? Start here
Most Azure services charge by usage: per hour for VMs, per GB for storage, per GB transferred out. Costs are collected per subscription. Cost Management is the free tool to analyse them.
Cost analysis shows actual and forecast costs, grouped by service, resource group, location or tag, at any scope from management group down to resource group.
2. Budgets
A budget sets a spending threshold for a scope and sends alerts when actual or forecast cost crosses percentages you choose.
Example: how many alerts fire?
Budget: $1,000 per month on rg-web. Alerts at 50% (email) and 70% (SMS). VM1 in rg-web costs $20 per day. VM2 in another group costs $30 per day.
- Only rg-web counts, so ignore VM2.
- VM1 costs $20 times 30 days = $600 in the month.
- 50% is $500, reached on day 25, so one email is sent.
- 70% is $700, never reached, so no SMS. Both VMs keep running.
3. Azure Advisor
Advisor gives free, personalised recommendations in five categories: Cost, Security, Reliability, Operational excellence and Performance. Its cost advice includes shutting down or resizing idle and underused VMs, and buying reservations for steady workloads.
4. Paying less
| Option | Best for |
|---|---|
| Reservations | A specific VM size or service running steadily for 1 or 3 years |
| Savings plan for compute | A committed hourly spend across changing VM sizes and regions |
| Azure Hybrid Benefit | Reusing Windows Server or SQL Server licences with Software Assurance |
| Spot VMs | Interruptible batch jobs at deep discounts |
| Auto-shutdown and right-sizing | Dev and test VMs that sit idle at night |
Example
SS Kaiser's finance lead sees the dev subscription costing more than production. Cost analysis grouped by tag shows Environment = Dev VMs running all weekend. The team adds auto-shutdown at 7 pm, resizes three VMs Advisor flagged as idle, and sets a forecast budget alert so it never happens silently again.
Exam traps to remember
- Budgets alert. They do not stop or delete anything on their own.
- Always filter a budget question by scope before calculating.
- Idle or underused VM recommendations come from Azure Advisor, not Azure Monitor.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-104 Azure Administrator app.
Practise in the app