How the Azure reservation discount is applied to virtual machines
After you buy an Azure Reserved Virtual Machine Instance, the reservation discount is automatically applied to virtual machines that match the attributes and quantity of the reservation. A reservation covers the compute costs of your virtual machines.
A reservation discount applies to the base VMs that you purchase from the Azure Marketplace.
For SQL Database reserved capacity, see Understand Azure Reserved Instances discount.
The following table illustrates the costs for your virtual machine after you purchase a Reserved VM Instance. In all cases, you're charged for storage and networking at the normal rates.
|Virtual Machine Type||Charges with Reserved VM Instance|
|Linux VMs without additional software||The reservation covers your VM infrastructure costs.|
|Linux VMs with software charges (For example, Red Hat)||The reservation covers the infrastructure costs. You're charged for additional software.|
|Windows VMs without additional software||The reservation covers the infrastructure costs. You're charged for Windows software.|
|Windows VMs with additional software (For example, SQL server)||The reservation covers the infrastructure costs. You're charged for Windows software and for additional software.|
|Windows VMs with Azure Hybrid Benefit||The reservation covers the infrastructure costs. The Windows software costs are covered by the Azure Hybrid Benefit. Any additional software is charged separately.|
How reservation discount is applied
A reservation discount is "use-it-or-lose-it". So, if you don't have matching resources for any hour, then you lose a reservation quantity for that hour. You can't carry forward unused reserved hours.
When you deallocate, delete, or scale the number of VMs, the reservation discount automatically applies to another matching resource in the specified scope. If no matching resources are found in the specified scope, then the reserved hours are lost.
Stopped VMs are billed and continue to use reservation hours. Deallocate or delete VM resources or scale-in other VMs to use your available reservation hours with other workloads.
Reservation discount for non-Windows VMs
The Azure reservation discount is applied to running VM instances on an hourly basis. The reservations that you have purchased are matched to the usage emitted by the running VMs to apply the reservation discount. For VMs that may not run the full hour, the reservation will be filled from other VMs not using a reservation, including concurrently running VMs. At the end of the hour, the reservation application for VMs in the hour is locked. In the event a VM doesn't run for an hour or concurrent VMs within the hour don't fill the hour of the reservation, the reservation is underutilized for that hour. The following graph illustrates the application of a reservation to billable VM usage. The illustration is based on one reservation purchase and two matching VM instances.
- Any usage that's above the reservation line gets charged at the regular pay-as-you-go rates. You're not charged for any usage below the reservations line, since it has been already paid as part of reservation purchase.
- In hour 1, instance 1 runs for 0.75 hours and instance 2 runs for 0.5 hours. Total usage for hour 1 is 1.25 hours. You're charged the pay-as-you-go rates for the remaining 0.25 hours.
- For hour 2 and hour 3, both instances ran for 1 hour each. One instance is covered by the reservation and the other is charged at pay-as-you-go rates.
- For hour 4, instance 1 runs for 0.5 hours and instance 2 runs for 1 hour. Instance 1 is fully covered by the reservation and 0.5 hours of instance 2 is covered. You’re charged the pay-as-you-go rate for the remaining 0.5 hours.
To understand and view the application of your Azure Reservations in billing usage reports, see Understand reservation usage.
Reservation discount for Windows VMs
When you're running Windows VM instances, the reservation is applied to cover the infrastructure costs. The application of the reservation to the VM infrastructure costs for Windows VMs is the same as for non-Windows VMs. You're charged separately for Windows software on a per vCPU basis. See Windows software costs with Reservations. You can cover your Windows licensing costs with Azure Hybrid Benefit for Windows Server.
Discount can apply to different sizes
When you buy a Reserved VM Instance and select Optimized for instance size flexibility, the discount coverage applies to the VM size you select. It can also apply to other VMs sizes that are in the same series instance size flexibility group. For more information, see Virtual machine size flexibility with Reserved VM Instances.
Premium storage VMs don't get non-premium discounts
Here's an example. Assume you bought a reservation for five Standard_D1 VMs, the reservation discount applies only to Standard_D1 VMs or other VMs in the same instance family. The discount doesn't apply to Standard_DS1 VM or other sizes in the DS1 instance size flexibility group.
The reservation discount application ignores the meter used for VMs and only evaluates ServiceType. Look at the
ServiceType value in
AdditionalInfo to determine the instance flexibility group/series information for your VMs. The values are in your usage CSV file.
You can't directly change the instance flexibility group/series of the reservation after purchase. However, you can exchange a VM reservation from one instance flexibility group/series to another. For more information about reservation exchanges, see Exchanges and refunds for Azure Reservations.
Services that get VM reservation discounts
Your VM reservations can apply to VM usage emitted from multiple services - not just for your VM deployments. Resources that get reservation discounts change depending on the instance size flexibility setting.
Instance size flexibility setting
The instance size flexibility setting determines which services get the reserved instance discounts.
Whether the setting is on or off, reservation discounts automatically apply to any matching VM usage when the ConsumedService is
Microsoft.Compute. So, check your usage data for the ConsumedService value. Some examples include:
- Virtual machines
- Virtual machine scale sets
- Container service
- Azure Batch deployments (in user subscriptions mode)
- Azure Kubernetes Service (AKS)
- Service Fabric
When the setting is on, reservation discounts automatically apply to matching VM usage when the ConsumedService is any of the following items:
Check the ConsumedService value in your usage data to determine if the usage is eligible for reservation discounts.
For more information about instance size flexibility, see Virtual machine size flexibility with Reserved VM Instances.
Need help? Contact us
If you have questions or need help, create a support request.
To learn more about Azure Reservations, see the following articles:
- What are reservations for Azure?
- Prepay for Virtual Machines with Azure Reserved VM Instances
- Prepay for SQL Database compute resources with Azure SQL Database reserved capacity
- Manage reservations for Azure
- Understand reservation usage for your Pay-As-You-Go subscription
- Understand reservation usage for your Enterprise enrollment
- Understand reservation usage for CSP subscriptions
- Windows software costs not included with reservations