Last updated: May 2026
Azure Virtual Machines Beginner AZ-104 ⏱ 13 min read

Azure VM Pricing & Cost Tips

Azure VMs can be surprisingly affordable — or surprisingly expensive — depending on how you manage them. Understanding every cost component and every available discount is essential for running cost-efficient Azure environments. This page covers everything: what you pay for, how pricing models compare, real-world cost examples, and the most effective ways to cut your VM bill.

What you'll learn Every VM cost component · All pricing models compared · Real pricing examples for common VM sizes · Azure Hybrid Benefit · Reserved Instances calculator · Right-sizing with Azure Advisor · The 10 most effective cost-cutting tips · Using the Azure Pricing Calculator

VM Cost Components

Many people think VM cost = compute cost. In reality, a VM has several cost components:

ComponentBilled WhenTypical Cost
Compute (vCPU + RAM)Only when VM is runningDominant cost — varies by size
OS Disk (Premium SSD)Always — even when deallocated~₹800–2,000/month per disk
Data DisksAlways — even when deallocatedDepends on size and tier
Public IP AddressAlways when allocated — even when VM is stopped~₹250/month (Standard SKU)
Outbound NetworkPer GB transferred out to internetFirst 15 GB free, then ~₹6/GB
Windows LicenceOnly when VM is running (PAYG)~40–50% premium over Linux
⚠️
Costs That Persist After Stopping a VM Disks and Public IPs continue billing even when the VM is deallocated. For a stopped dev VM, you might still pay ₹1,000–1,500/month in disk and IP charges. Delete unused VMs completely to stop all charges.

Pricing Models Compared

ModelCost vs PAYGCommitmentFlexibilityBest For
Pay-As-You-GoBaseline (100%)NoneFullVariable/unknown workloads
1-year Reserved~60% of PAYG1 yearCan exchangeStable workloads, 1-year certainty
3-year Reserved~28% of PAYG3 yearsCan exchangeLong-running stable workloads
Spot~10–30% of PAYGNoneNone — evictableFault-tolerant batch jobs
Dev/Test pricing~40–55% of PAYGNoneFullVisual Studio subscribers, dev/test only

Real Pricing Examples

Approximate monthly costs for common VM sizes in Central India (pay-as-you-go, Linux):

VM SizevCPUsRAMPAYG/Month1yr Reserved3yr Reserved
B1s11 GB~₹550~₹330~₹165
B2s24 GB~₹2,200~₹1,320~₹660
B4ms416 GB~₹8,800~₹5,280~₹2,640
D4s_v5416 GB~₹13,000~₹7,800~₹3,900
D8s_v5832 GB~₹26,000~₹15,600~₹7,800
E8s_v5864 GB~₹35,000~₹21,000~₹10,500
ℹ️
Prices Are Approximate VM prices change periodically. Always use the Azure Pricing Calculator for current, accurate pricing before making purchasing decisions.

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
Azure CLI Enable Hybrid Benefit on an existing Windows VM
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-Size Before Reserving Don't reserve a VM that's over-provisioned. Use Azure Advisor to analyse actual usage first. Reserving a D8s when you only need a D4s wastes money even with the reservation discount.

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.

Azure Portal Find right-sizing recommendations
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
💡
AZ-104 Exam Tip Know all four pricing models (PAYG, Reserved 1yr, Reserved 3yr, Spot), know that Hybrid Benefit applies to Windows/SQL licences with Software Assurance, and know that Azure Advisor provides right-sizing recommendations. The exam may ask you to identify the cheapest option for a given scenario.
📝 Practice Questions
Click an option to check your answer. AZ-104 style questions.
Q1. A company stops (deallocates) a VM at night to save costs. Which charges continue while the VM is deallocated?
A Compute charges for CPU and RAM
B Network transfer charges
C Storage (disks) and Public IP address charges
D No charges at all — everything stops
Q2. A company has a stable production VM that has been running 24/7 for 2 years and will continue for at least another 2 years. Which pricing model gives the best cost savings?
A Pay-as-you-go
B 3-year Reserved Instance
C Spot pricing
D 1-year Reserved Instance
Q3. What is Azure Hybrid Benefit?
A A discount for using both Reserved Instances and Spot VMs together
B A benefit allowing reuse of existing Windows/SQL Server licences on Azure VMs
C A discount for using both on-premises and Azure resources together
D A free benefit automatically applied to all Azure customers
Q4. Azure Advisor identifies a VM that has been using less than 5% CPU for the past 30 days. What is Azure Advisor's recommendation?
A Move the VM to a cheaper region
B Right-size or shut down the underutilised VM to save costs
C Upgrade to a larger VM size for better performance
D Convert to a Reserved Instance immediately
Q5. Which of the following is NOT a component of Azure VM cost?
A Compute (vCPU and RAM)
B OS disk storage
C Inbound network data transfer
D Public IP address
Comments
Disclaimer: RedKite Cloud is an independent educational resource and is not affiliated with, endorsed by, or officially connected to Microsoft Corporation. All product names, logos, and trademarks are property of their respective owners. Content is written independently for educational purposes only.