Azure has several ways to pay for VM compute. Choosing the right model can reduce costs by 70% or more compared to default pricing.
Pay-as-you-go
The default pricing model charges by the second (billed hourly) with no commitment. A D2s v3 running Windows at pay-as-you-go rates costs around £115/month if it’s running continuously.
Pay-as-you-go gives you maximum flexibility: spin up a VM when you need it, delete it when you don’t, and pay only for what you use. This suits variable workloads, testing, and situations where you can’t predict usage.
The downside is cost. Pay-as-you-go is the most expensive option for VMs that run continuously.
Reserved Instances
If you know you’ll need a VM for at least a year, Reserved Instances offer some pretty big savings. You commit to a specific VM size in a specific region for 1 or 3 years, and in return you get a discounted rate.
Typical savings:
- 1-year commitment: around 13% discount vs pay-as-you-go
- 3-year commitment: around 25% discount vs pay-as-you-go
A D2s v3 that costs £115/month at pay-as-you-go drops to around £86/month with a 3-year savings plan, saving nearly £350/year on a single VM.
Reserved Instances are ideal for production workloads with predictable, steady-state requirements. They’re less suited to workloads that might need to scale up or down significantly or might be retired before the term ends.
Azure Savings Plans
Savings Plans are an alternative to Reserved Instances that offer more flexibility. Instead of committing to a specific VM size, you commit to a certain amount of compute spend per hour (e.g., £10/hour). That commitment applies across any VM in any region, as long as you’re using eligible compute services.
Based on current UK South pricing, Savings Plans offer around 13% savings for 1-year commitments and around 25% for 3-year commitments. Reserved Instances can offer slightly higher discounts for specific VM sizes, but Savings Plans provide more flexibility if your VM requirements might change.
Azure Spot VM Pricing
Spot VMs let you access unused Azure capacity at steep discounts, often 80-90% below pay-as-you-go rates. The catch is that Azure can evict your VM with 30 seconds’ notice when it needs the capacity back.
A D2s v3 that costs £115/month at pay-as-you-go drops to around £14/month as a Spot VM, an 87% saving. The exact price fluctuates based on demand for that VM size in that region. Spot VMs suit workloads that are:
- Interruptible: Can handle being stopped and restarted
- Stateless: Don’t rely on local state that would be lost on eviction
- Flexible on timing: Don’t need to complete by a specific deadline
Common use cases include batch processing, CI/CD build agents, dev/test environments, and machine learning training jobs with checkpointing. They’re not suitable for production web servers, databases, or anything that needs continuous availability.
Dev/Test pricing
If you have a Visual Studio subscription (or your organisation has one), Azure offers discounted rates for development and testing. Windows VMs in dev/test subscriptions don’t incur the Windows licence cost, effectively giving you Windows at Linux prices without needing Azure Hybrid Benefit.
This applies to dev/test environments only, not production workloads. It’s an easy saving to miss if you’re not aware of it.