Subscriptions and cost management

AZ-104 Azure AdministratorIdentities and governanceAbout 15 minutesBy Cloud Hands On

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

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.

Budgets only notify. They never stop resources by themselves. To act automatically, attach an action group that runs a runbook or Logic App.
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.

  1. Only rg-web counts, so ignore VM2.
  2. VM1 costs $20 times 30 days = $600 in the month.
  3. 50% is $500, reached on day 25, so one email is sent.
  4. 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

OptionBest for
ReservationsA specific VM size or service running steadily for 1 or 3 years
Savings plan for computeA committed hourly spend across changing VM sizes and regions
Azure Hybrid BenefitReusing Windows Server or SQL Server licences with Software Assurance
Spot VMsInterruptible batch jobs at deep discounts
Auto-shutdown and right-sizingDev 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

Keep going