Lesson 3 of 4 Azure Cost Management

Analysing and Controlling Costs with Microsoft Cost Management

This lesson explains the capabilities of Microsoft Cost Management: cost analysis, forecasts, budgets, cost alerts and optimization recommendations.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe cost analysis and forecasting.
  • Explain how budgets and cost alerts work.
  • Identify the cost management capability for a requirement.

What Microsoft Cost Management provides

Microsoft Cost Management is a set of tools in the Azure portal for monitoring, allocating and optimizing cloud costs. It lets you quickly check Azure resource costs, create alerts based on resource spend, and create budgets that can be used to automate management of resources. Cost Management works at several scopes, such as a management group, subscription or resource group, and users see the costs of the scopes they have access to.

Cost analysis

Cost analysis is a subset of Cost Management that provides a quick visual for Azure costs. It shows costs over time with accumulated, daily and monthly views, and lets you group and filter by subscription, resource group, resource, service, region, meter or tag. It also shows a forecast of future costs based on past spending, so you can see whether the month is likely to end over budget. Smart views highlight anomalies, such as an unusual increase in daily spending.

Cost data can be exported on a schedule to a storage account for further analysis or reporting in tools such as Power BI, and cost views can be saved and shared.

Select all that apply

What cost analysis does

Exam skills 3.1.3

Identify the capabilities of cost analysis.

Log in to try this activity Interactive activities are free with an account.

Budgets and cost alerts

A budget sets a spending threshold for a scope, such as a subscription, resource group or a group of resources filtered by tag, over a period such as a month. When actual or forecast spending reaches percentages of the budget that you define, for example 80% and 100%, Cost Management sends notifications. A budget can also trigger an action group that runs automation, for example shutting down development VMs; without such automation, a budget only notifies and does not stop resources.

Cost alerts provide a single location to check on the different alert types that may show up in Cost Management. The following table lists them.

Alert typeWhen it fires
Budget alertsSpending, based on usage or cost, reaches or exceeds the amount defined in the budget's alert condition
Credit alertsAzure credit monetary commitments are consumed, typically at 90% and 100% of the credit balance
Department spending quota alertsDepartment spending reaches a fixed threshold of the quota (for Enterprise Agreement customers)
Anomaly alertsCost analysis detects an unusual change in daily spending
Match the pairs

Cost alert types

Exam skills 3.1.3

Match each cost alert type with when it fires.

Log in to try this activity Interactive activities are free with an account.

Optimization recommendations

Cost Management includes Azure Advisor cost recommendations, which identify ways to save money: resizing or shutting down underused VMs, deleting unattached disks and idle public IP addresses, and buying reservations or savings plans for steady usage. Together with tags, which allocate costs to the teams responsible, these capabilities support a continuous cycle of seeing costs, assigning accountability and optimizing.

Worked example

Controlling a team's spending

A development team's subscription regularly exceeds its expected monthly spend of $2,000. The manager wants an email when spending reaches $1,600 and again when the forecast shows that it will exceed $2,000, and wants to see which resource groups account for most of the cost. What should be configured?

Create a budget of $2,000 for the subscription with an alert condition at 80% of actual cost ($1,600) and another at 100% of forecast cost, sending email to the manager. Use cost analysis grouped by resource group to see where the money goes. The budget alone will not stop resources; if spending must be limited automatically, an action group can trigger automation.

Check yourself

Does a budget stop resources when spending exceeds it?

Show answer

Not on its own. A budget sends alerts; stopping resources requires automation through an action group.

Exam Tips

Remember for the exam

  • Cost analysis visualizes and forecasts actual costs, grouped and filtered by scope, service or tag.
  • Budgets send alerts at thresholds of actual or forecast cost; they do not stop resources on their own.
  • Cost alerts include budget, credit, department spending quota and anomaly alerts.
  • Cost Management shows Azure Advisor cost recommendations.