Comparing Azure Pricing Models
This lesson compares pay-as-you-go pricing with Azure Reservations, the Azure savings plan for compute, Azure Spot Virtual Machines and Azure Hybrid Benefit, and explains which workloads suit each.
Learning outcomes
After completing this lesson, you will be able to:
- Describe each Azure pricing model and its trade-offs.
- Distinguish Azure Reservations from the Azure savings plan for compute.
- Identify the most cost-effective pricing model for a workload.
Pay-as-you-go
With pay-as-you-go, resources are billed at list prices for exactly what is used, with no commitment and no up-front payment. It is the most flexible model: resources can be created and deleted at any time. It suits workloads whose size or lifetime is unknown, short projects, development and test environments, and new applications whose demand has not yet settled. Flexibility costs more per hour than the commitment-based options.
Commitment-based discounts
Azure offers two ways to exchange a commitment for a lower price, both for one-year or three-year terms, with a larger discount for three years.
- Azure Reservations commit to a specific resource type in a specific region, such as a particular VM size, Azure SQL Database compute or Azure Cosmos DB throughput. The reservation discount is applied automatically to matching resources. Reservations give the largest discounts and suit steady workloads that run continuously and are unlikely to change.
- The Azure savings plan for compute commits to spend a fixed amount per hour on compute services. The savings apply automatically to eligible usage across VM sizes, regions and services such as Azure App Service and Azure Functions Premium, up to the hourly commitment, and usage above it is billed at pay-as-you-go prices. It suits steady spending whose shape may change, for example when VM sizes or regions are expected to evolve.
Both options are billing discounts, not separate resources: the VMs themselves are created and managed in the same way. The commitment is paid whether or not resources are running, so it should cover only the baseline that is certain to be used.
Reservations and savings plans
Spot capacity, licence reuse and free offers
Azure Spot Virtual Machines run on Azure's unused capacity at a deep discount, up to about 90% off pay-as-you-go prices. When Azure needs the capacity back, or when the price rises above a maximum the customer set, Azure evicts the VM with 30 seconds' notice. Spot VMs therefore suit workloads that can be interrupted and resumed, such as batch processing, rendering, large-scale testing and some development work, and they are unsuitable for production web servers or databases.
Azure Hybrid Benefit lets organizations use their existing on-premises Windows Server and SQL Server licences with active Software Assurance or subscriptions, and some Red Hat and SUSE Linux subscriptions, on Azure. They then pay only the base compute rate, without the licence cost included in the normal price, which significantly reduces the cost of migrated Windows and SQL Server workloads. Azure Hybrid Benefit can be combined with reservations.
Finally, the Azure free account provides credit to use in the first 30 days, a selection of services free for 12 months, and other services that are always free up to a monthly limit, which is useful for learning and prototyping.
Spot and free account numbers
Choosing a pricing model
The choice depends on how predictable the workload is and whether it can tolerate interruption. The following comparison summarizes the main options.
Many organizations combine models: reservations or a savings plan for the steady baseline, pay-as-you-go for variable demand above it, Spot VMs for batch jobs, and Azure Hybrid Benefit wherever they already own eligible licences.
Pick the pricing model
Matching workloads to pricing models
A company runs three workloads: a production database server that runs every hour of the year at the same size, a nightly video-rendering job that can restart if interrupted, and a proof-of-concept application that may be cancelled next month. It also owns Windows Server licences with Software Assurance. Which pricing option minimizes the cost of each workload?
The database server is steady and long-lived, so a three-year reservation for its VM size gives the largest discount, and Azure Hybrid Benefit can remove the Windows Server licence cost if the server runs Windows. The rendering job tolerates interruption, so Spot Virtual Machines are the cheapest option. The proof of concept may end soon, so pay-as-you-go avoids a commitment that might go unused.
How much notice does Azure give before evicting a Spot Virtual Machine?
Show answer
30 seconds, which is why Spot VMs suit only workloads that can be interrupted and resumed.
Exam Tips
Remember for the exam
- Steady usage of a specific resource for one or three years: Azure Reservations.
- Steady hourly compute spending across changing sizes or regions: Azure savings plan for compute.
- Interruptible work at the lowest price: Spot Virtual Machines (evicted with 30 seconds' notice).
- Existing Windows Server or SQL Server licences with Software Assurance: Azure Hybrid Benefit.