VM Cost Components
Many people think VM cost = compute cost. In reality, a VM has several cost components:
| Component | Billed When | Typical Cost |
|---|---|---|
| Compute (vCPU + RAM) | Only when VM is running | Dominant cost — varies by size |
| OS Disk (Premium SSD) | Always — even when deallocated | ~₹800–2,000/month per disk |
| Data Disks | Always — even when deallocated | Depends on size and tier |
| Public IP Address | Always when allocated — even when VM is stopped | ~₹250/month (Standard SKU) |
| Outbound Network | Per GB transferred out to internet | First 15 GB free, then ~₹6/GB |
| Windows Licence | Only when VM is running (PAYG) | ~40–50% premium over Linux |
Pricing Models Compared
| Model | Cost vs PAYG | Commitment | Flexibility | Best For |
|---|---|---|---|---|
| Pay-As-You-Go | Baseline (100%) | None | Full | Variable/unknown workloads |
| 1-year Reserved | ~60% of PAYG | 1 year | Can exchange | Stable workloads, 1-year certainty |
| 3-year Reserved | ~28% of PAYG | 3 years | Can exchange | Long-running stable workloads |
| Spot | ~10–30% of PAYG | None | None — evictable | Fault-tolerant batch jobs |
| Dev/Test pricing | ~40–55% of PAYG | None | Full | Visual Studio subscribers, dev/test only |
Real Pricing Examples
Approximate monthly costs for common VM sizes in Central India (pay-as-you-go, Linux):
| VM Size | vCPUs | RAM | PAYG/Month | 1yr Reserved | 3yr Reserved |
|---|---|---|---|---|---|
| B1s | 1 | 1 GB | ~₹550 | ~₹330 | ~₹165 |
| B2s | 2 | 4 GB | ~₹2,200 | ~₹1,320 | ~₹660 |
| B4ms | 4 | 16 GB | ~₹8,800 | ~₹5,280 | ~₹2,640 |
| D4s_v5 | 4 | 16 GB | ~₹13,000 | ~₹7,800 | ~₹3,900 |
| D8s_v5 | 8 | 32 GB | ~₹26,000 | ~₹15,600 | ~₹7,800 |
| E8s_v5 | 8 | 64 GB | ~₹35,000 | ~₹21,000 | ~₹10,500 |
Azure Hybrid Benefit
If your organisation has existing Windows Server or SQL Server licences with Software Assurance, you can reuse them on Azure VMs — instead of paying for a new licence in the VM price.
Windows Server Hybrid Benefit
- Each 2-core Windows Server licence covers 1 Azure vCore
- Saves approximately 40–49% on Windows VM compute cost
- Available for Windows Server 2008 R2 and above
SQL Server Hybrid Benefit
- Reuse existing SQL Server licences on Azure SQL VMs
- Can save up to 55% on SQL Server VM costs
- Available for SQL Server 2008 and above
az vm update \
--resource-group myResourceGroup \
--name myWindowsVM \
--license-type Windows_Server
Reserved Instances — Deep Dive
Reserved Instances (RIs) are the single biggest lever for reducing stable VM costs. Here's everything you need to know:
How They Work
You commit to using a specific VM size in a specific region for 1 or 3 years. In return, Azure gives you a discount. The VM keeps running as normal — nothing changes technically. You just pay less.
Flexibility
- Instance size flexibility — By default, a reservation can apply to VMs of different sizes within the same series (e.g., a D4s_v5 reservation can cover a D8s_v5 VM)
- Exchange — You can exchange a reservation for a different size or region (one-time, with restrictions)
- Cancellation — Can be cancelled with a penalty (12% early termination fee)
When to Reserve
- Production VMs running 24/7 for at least 1 year
- Database servers, application servers, or any stable baseline infrastructure
- When you're confident about the VM size (right-size first, then reserve)
Right-Sizing with Azure Advisor
Azure Advisor continuously monitors your VM usage and recommends cost optimisations. It identifies VMs using less than 5% CPU consistently — candidates for downsizing.
Portal → Search "Advisor" → Cost tab → "Right-size or shutdown underutilized virtual machines"
Advisor shows you exactly which VMs are over-provisioned, what size to downsize to, and how much you'll save per month.
Top 10 Cost-Cutting Tips
1. Enable Auto-Shutdown on Dev/Test VMs
Save 50–70% on dev VM costs by shutting them down outside working hours.
2. Delete VMs You're Not Using — Don't Just Stop Them
A stopped (OS-level) VM still charges for compute. Deallocate it or delete it completely.
3. Delete Orphaned Disks and Public IPs
After deleting a VM, check for leftover disks and public IPs that are still billing.
4. Use Reserved Instances for Stable Workloads
Save 40–72% on VMs that run continuously. The most impactful single change.
5. Use Spot VMs for Batch Jobs
Up to 90% savings for fault-tolerant, interruptible workloads.
6. Right-Size with Azure Advisor
Many teams over-provision. Advisor finds unused capacity and recommends smaller sizes.
7. Use Linux Instead of Windows Where Possible
Linux VMs are ~40% cheaper — no OS licence fee.
8. Use Azure Hybrid Benefit
If you have existing Windows/SQL licences with Software Assurance, activate Hybrid Benefit.
9. Choose the Right Region
VM prices vary by region. East US is often 10–20% cheaper than some other regions for the same size.
10. Set Budget Alerts
Configure Azure Cost Management budgets to alert you at 80% and 100% of monthly budget — so surprises never happen.
Using the Pricing Calculator
Always estimate costs before deploying. The Azure Pricing Calculator at azure.microsoft.com/pricing/calculator lets you configure VMs and see exact monthly costs.
For a VM estimate, configure:
- Region — Central India
- Operating System — Linux or Windows
- Tier — Standard
- VM Size — select your target size
- Pricing Option — Pay as you go / 1-year reserved / 3-year reserved
- Hours — how many hours per month (730 = 24/7, 240 = 8 hrs/day weekdays)
- Managed OS Disk — add your disk type and size