Lesson 1 of 4 Azure Cost Management

Identifying the Factors That Affect Azure Costs

This lesson explains the factors that determine Azure costs: resource type, consumption, maintenance, geography, network traffic, subscription type and Azure Marketplace.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the factors that affect Azure costs.
  • Explain how network traffic direction affects bandwidth charges.
  • Identify the cause of a cost difference in a scenario.

Resource type and its configuration

The type of resource and its settings are the starting point for its cost. A virtual machine's price depends on its size (vCPUs and memory), its operating system (Windows prices include a licence, unless Azure Hybrid Benefit is used), its disks and how long it runs. A storage account's price depends on its performance tier (Standard or Premium), the access tier of its blobs (Hot, Cool, Cold or Archive), its redundancy (LRS costs less than GRS) and the number of operations performed. When a resource is provisioned, Azure creates meters that track its usage, and those meters generate the billed usage records.

Consumption and maintenance

Consumption is the most direct driver: in a pay-as-you-go model, using more resources for longer costs more. Organizations can lower the unit price by committing to usage with Azure Reservations, which Microsoft states can save up to 72% compared with pay-as-you-go prices, or the Azure savings plan for compute, which can save up to 65%, for steady workloads. Consumption also gives flexibility: when demand rises, more resources can be used and paid for, and when it falls, spending falls too.

Maintenance affects cost because resources that are no longer needed continue to be billed. Deleting a VM may leave its disks, network interface and public IP address behind; a test environment may be forgotten. Regularly reviewing resources, grouping temporary resources in their own resource groups and deleting what is not used keeps costs under control.

Fill in the value

Commitment savings

Exam skills 3.1.1

Recall the maximum savings Microsoft states for commitment options.

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

Geography and network traffic

Geography matters because Azure prices differ by region. The cost of power, labour, taxes and fees varies between locations, so the same VM size can cost more in one region than in another. Choosing a region therefore balances cost against latency, data residency and service availability.

Network traffic is billed according to its direction and destination. The following table summarizes the general rules for bandwidth charges.

TrafficGenerally billed?
Data entering Azure datacentres (ingress)No, inbound data transfer is free
Data leaving Azure datacentres to the internet (egress)Yes, after a monthly free allowance
Data transferred between Azure regionsYes
Data transferred between services in the same region, including between availability zonesGenerally no, apart from virtual network peering
Data transferred through virtual network peeringYes, inbound and outbound

Outbound transfer pricing is also organized into zones, geographical groupings of regions with their own rates. Designs that keep traffic within a region, or that cache content close to users, can reduce bandwidth charges.

Sort into groups

Is this traffic billed?

Exam skills 3.1.1

Decide whether each kind of data transfer is generally billed.

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

Subscription type and Azure Marketplace

The subscription type can include usage allowances or different rates. The Azure free account includes credit and free services; development and test offers provide discounted rates for non-production use; and enterprise agreements may include negotiated prices. Resources purchased through Azure Marketplace, such as a third-party firewall appliance or a preconfigured software image, add the vendor's charges to the Azure resources they run on, and those charges appear on the Azure bill. Microsoft certifies Marketplace solutions, but the vendor sets the price.

Select all that apply

What changes the bill?

Exam skills 3.1.1

Identify the factors that change what the same resource costs.

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

Explaining a cost difference

Two teams deploy the same application with identical VM sizes. Team A's monthly cost is noticeably higher. Team A deployed in a different region from Team B, serves large video files directly to internet users, and uses GRS storage while Team B uses LRS. Which of these differences could explain the higher cost?

All three could. Geography: prices differ between regions, so identical VMs can cost more in Team A's region. Network traffic: serving large files to the internet is outbound data transfer, which is billed, whereas inbound transfer is free. Resource configuration: GRS keeps copies in a second region and costs more than LRS. The identical VM sizes rule out compute size as the cause.

Check yourself

Is data transferred into Azure datacentres billed?

Show answer

Generally no. Inbound transfer is free; outbound and inter-region transfer is billed.

Exam Tips

Remember for the exam

  • Cost factors: resource type, consumption, maintenance, geography, network traffic, subscription type and Marketplace.
  • Inbound data transfer is free; outbound and inter-region transfer is billed.
  • Prices for the same resource vary by region.
  • Unused and orphaned resources keep incurring costs until they are deleted.