Skip to content
Lesson 9 of 13 · Microsoft Azure Fundamentals (AZ-900)

Cost management

Name the factors that drive Azure cost, estimate with the pricing calculator, track with Cost Management, and apply tags and savings options.

15 min

What affects the cost of Azure resources

  • Resource type and size: a bigger VM costs more. Each service has its own meters (hours, GB, requests).
  • Consumption: pay-as-you-go means more use, more cost.
  • Maintenance: a managed (PaaS) service costs more per unit than raw IaaS, but saves you the work.
  • Geography (region): prices differ by region, and data moving between regions or out of Azure is charged. Data into Azure is generally free.
  • Subscription type and Azure Marketplace purchases.
  • Network traffic: bandwidth out of a region.

Ways to pay less

  • Reservations: commit to 1 or 3 years for resources such as VMs for a large discount (up to about 72%).
  • Azure Savings Plan for compute: commit to an hourly spend for flexible savings.
  • Spot VMs: unused capacity at deep discounts, with the risk of being evicted.
  • Azure Hybrid Benefit: use your existing Windows Server or SQL Server licenses with Software Assurance in Azure.
  • Right-size or shut down idle resources, and use autoscale.
  • Dev/Test pricing for non-production.

Tools

  • Pricing calculator: estimate the cost of a set of Azure services before you deploy.
  • Microsoft Cost Management: after you deploy, analyze spending, set budgets, and receive alerts and recommendations.
  • Tags: name-value pairs on resources, for example Department: Finance, used to group and report costs by project, team or cost center. Tags do not inherit from the resource group by default.

A VM costs $0.20 per hour pay-as-you-go. It runs 24 hours a day for a 30-day month. A 3-year reservation gives 60% off. What are the monthly costs for pay-as-you-go and for the reservation?

  1. 1

    Hours in the month

    24 × 30 = 720 hours.

1/3
Try it

The prices are made up for practice. Start at 720 hours and a 60% discount. Then lower the hours to 100 and think about whether you would reserve a machine used so little. A reservation only pays off if the resource runs most of the time.

0.20 $
720 h
60 %

Monthly cost for one VM

—

Reference

Which tool?

Estimate the cost of a planned deployment

Use
Pricing calculator

See where my money is going now

Use
Microsoft Cost Management

Get an alert before spending passes a limit

Use
Cost Management budgets and alerts

Group costs by department or project

Use
Tags

Get recommendations to cut idle spending

Use
Azure Advisor (cost recommendations)

Reuse existing Windows Server licenses

Use
Azure Hybrid Benefit
Common misconception

“Tags on a resource group automatically apply to every resource in it.”

Resources inherit so many other settings from their group.

What is actually true

Tags are not inherited by default. Use Azure Policy to require or copy tags from a resource group to its resources.

  • Costs depend on resource type, consumption, maintenance, region, subscription and traffic.
  • Reservations, savings plans, Spot, Hybrid Benefit and right-sizing reduce cost.
  • Pricing calculator: before. Cost Management: after. Tags: organize.
  • Data going into Azure is free. Data going out is charged.
Check yourself

Cost check.

1Multiple choice

Which tool estimates the cost of services before you deploy them?

  • AAzure Policy
  • BMicrosoft Cost Management
  • CPricing calculator
  • DAzure Monitor
2Multiple choice

Which feature lets you use existing Windows Server licenses on Azure VMs?

  • AAzure Hybrid Benefit
  • BAzure Spot
  • CAzure Reservations
  • DResource locks
3Multiple choice

What is the BEST use of tags for cost?

  • AMake resources cheaper
  • BEncrypt resources
  • CGroup and report costs by department or project
  • DBlock deletion
4Numeric answer

A resource costs $0.50 per hour and runs 100 hours. A 20% discount applies. What is the cost in dollars?

5Select all that apply

Which TWO can reduce the cost of Azure compute?

  • AShutting down unused VMs
  • BLeaving idle resources running
  • CRunning every VM at the largest size
  • DA 1- or 3-year reservation
  • EMoving data out of Azure more often

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Microsoft Azure Fundamentals (AZ-900) is planned around your week. Free.