Cost Management
budgets · cost alerts · anomaly alerts · Cost Analysis · Azure Advisor
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Budgets
- Budgets plan and track spending. A threshold triggers a notification. Resources aren't affected and consumption isn't stopped.
- Scopes: management group, subscription, resource group; plus EA and MCA billing scopes. All subscriptions in a scope must share one currency.
- A budget needs at least one threshold and one email, and allows up to five thresholds and five emails. Alert type is Actual or Forecasted. Threshold range: 0.01% to 1000%.
- Reset period: monthly, quarterly or annually, or billing month, quarter or year for pay-as-you-go style subscriptions and resource groups. A quarterly amount is divided evenly across three months, an annual one across 12. A budget has an expiration date and is deleted automatically when it expires.
- Budgets use actual cost (no amortization) and include reservation purchases. To limit a budget to first-party consumption, filter Publisher Type = Azure and Charge Type = Usage.
- Timing: cost data typically arrives within 8-24 hours, budgets are evaluated every 24 hours, and emails normally arrive within an hour of evaluation. New subscriptions can take up to 48 hours before Cost Management works.
- Action groups can be triggered by budgets at subscription and resource group scope only. Use them for automation or push notifications (enable Azure app push notifications on the action group).
- The page says budgets created with Azure PowerShell don't send notifications and recommends the REST API.
- Budget emails come from
azure-noreply@microsoft.com. Add it to approved senders.
| Role | Budget access |
|---|---|
| Owner | Create, modify and delete budgets |
| Contributor, Cost Management Contributor | Create and manage their own budgets, and change the amount of others' |
| Reader, Cost Management Reader | View only |
Create in the portal: open the scope (for a resource group: Resource groups › the group), then Budgets › Add › filters, name, reset period, expiration, amount › Next › alert type, threshold, recipients and optional action group › Create.
| Task | Azure CLI | PowerShell |
|---|---|---|
| Create a budget on a resource group | az consumption budget create-with-rg --amount 100 --budget-name TestCLIBudget -g $rg --category Cost --time-grain Monthly --time-period '{...}' --notifications '{...}' | New-AzConsumptionBudget -Amount 100 -Name TestPSBudget -Category Cost -TimeGrain Monthly ... |
| Create an action group email receiver | az monitor action-group receiver email create --email-address test@test.com --name EmailReceiver1 --resource-group <rg> | New-AzActionGroupReceiver -EmailAddress test@test.com -Name EmailReceiver1 |
Cost alerts
| Alert | Fires when | Offers |
|---|---|---|
| Budget alert | Spending reaches or exceeds the amount in the budget's alert condition | EA, MCA, pay-as-you-go |
| Credit alert | Generated automatically at 90% and 100% of the Azure Prepayment balance. Emailed to account owners | EA only |
| Department spending quota alert | Department spending reaches a fixed threshold of its quota (for example 50% or 75%). Emailed to department owners | EA only |
| Anomaly alert | Daily usage deviates from a forecast based on the last 60 days | Subscription scope |
- The Cost alerts page shows all active cost management and billing alerts. Status is Active or Dismissed, and a dismissed alert can be reactivated.
- Alert roles: Owner, Contributor and Cost Management Contributor can read and update. Reader and Cost Management Reader can only read.
- Anomaly alerts: created at subscription scope only, need Cost Management Contributor or greater, the email is sent once at detection, and a subscription can have up to five. Create: Cost Management › Cost alerts › Add › Alert type Anomaly. The anomaly check runs 36 hours after the end of the UTC day.
Cost Analysis
- You need Read access to use Cost Management. Smart views include insights, KPIs and anomaly detection. Reservations show amortized usage, while resource groups, services, subscriptions and resources show actual usage.
- Forecast works in smart and custom views with an area or stacked column chart. It uses linear regression, up to a year ahead, and 90 days of history is recommended for an annual forecast.
- You can save and share views, pin them to a dashboard, download them as an image, Excel or CSV, and subscribe to scheduled alerts daily, weekly or monthly.
Azure Advisor
- Five categories: Reliability, Security, Performance, Cost, Operational excellence. Advisor includes Microsoft Defender for Cloud recommendations.
- Recommendation states: Postponed, Dismissed, Completed (manual). After you implement one, Advisor can take up to a day to recognize it. A dismissed recommendation must be reactivated manually before it reappears.
- Permissions: Owner, Contributor or Reader can view recommendations. Managing status (postpone or dismiss) needs Contributor or Owner on the resource, or the Advisor Recommendations Contributor role. You also need access to the resource to see its recommendation.
- VM shutdown recommendations consider CPU and outbound network, not memory: P95 of max CPU below 3%, P100 of average CPU over the last 3 days at or below 2%, and outbound network below 2% over seven days.
- VM resize recommendations consider CPU, memory and outbound network. For user-facing workloads the target is P95 CPU and network at or below 40% and P99 memory at or below 60% on the new SKU. The new SKU must be cheaper, available in the region, and keep the same Accelerated Networking and Premium Storage capabilities.
- Lookback defaults to 7 days and can be 7, 14, 21, 30, 60 or 90. It can take up to 48 hours for recommendations to update.
- Advisor savings use retail rates and ignore reservations, savings plans and discounts.
- Configure right-sizing: Advisor › Configuration › VM/Virtual Machine Scale Sets right sizing tab › select subscriptions › Edit › choose an average CPU utilization › Apply. It filters which recommendations you see and doesn't change how they are generated. It can take up to 24 hours.
- A ReadOnly lock on a subscription prevents Advisor from storing results.
Exam Tips
Tick each tip once you can answer it without looking.
“Stop VMs when the budget is exceeded” → A budget that triggers an action group running automation. Trap: a budget alone doesn't stop resources.
“Warn before spend reaches the limit” → Forecasted alert condition. Trap: an Actual alert only fires after the cost is incurred.
“Budget for one team's resource group” → Create the budget at resource group scope.
“Email within minutes of overspending” → Budgets are evaluated every 24 hours, with email normally within an hour. Trap: real-time alerts.
“Thresholds and emails per budget” → Up to five of each. Trap: unlimited.
“Roles that can create budgets” → Owner, Contributor, Cost Management Contributor. Trap: Cost Management Reader is view only.
“Budget triggers a push notification or runbook” → Action group at subscription or resource group scope. Trap: management group scope doesn't support action groups.
“Budget period aligned to the invoice for pay-as-you-go” → Billing month reset period. Trap: Monthly is the calendar month.
“A budget reaches its expiration date” → It is deleted automatically. Trap: it stays forever.
“Budgets across subscriptions in different currencies” → Not supported: one currency per scope.
“EA Azure Prepayment nearly used up” → Credit alert (automatic at 90% and 100%). Trap: a budget alert; credit alerts don't exist for pay-as-you-go or MCA.
“Department reaches 75% of its quota” → Department spending quota alert (EA only). Trap: a budget alert.
“Cost suddenly deviates from the usual pattern” → Anomaly alert at subscription scope (Cost Management Contributor or greater, sent once). Trap: a budget alert fires at the amount in its alert condition.
“User must update cost alerts” → Cost Management Contributor (or Contributor or Owner). Trap: Reader and Cost Management Reader are read only.
“Find ways to reduce spend” → Azure Advisor, Cost category. Trap: Cost Analysis is for exploring and analyzing costs.
“Advisor categories” → Reliability, Security, Performance, Cost, Operational excellence. Trap: Availability or Compliance.
“Advisor shutdown recommendation for a VM” → Based on CPU and outbound network, not memory.
“Show only VMs under a chosen CPU value in Advisor” → Advisor Configuration, VM right sizing tab (a filter; it doesn't change generation).
“Intern must postpone or dismiss recommendations” → Contributor or Owner on the resource. Trap: Reader can view but not dismiss.
“Advisor shows nothing after a subscription ReadOnly lock” → The lock prevents Advisor storing results. Trap: an empty subscription.
Sources
- Tutorial: create and manage budgets
- Monitor usage and spending with cost alerts
- Identify anomalies and unexpected changes in cost
- Quickstart: start using cost analysis
- Introduction to Azure Advisor
- Reduce service costs by using Azure Advisor
- Permissions in Azure Advisor
- Lock your Azure resources
Checked against Microsoft Learn on November 13, 2026.