Back to Blog

How to Right-Size Azure Virtual Machines for Cost Savings

How to Right-Size Azure Virtual Machines for Cost Savings

Azure virtual machines represent one of the most significant line items on any organisation's cloud bill. For UK businesses running workloads on Microsoft Azure — whether application servers, database instances, development environments, or legacy systems migrated from on-premise — the choice of VM size directly determines how much you pay every month. And the uncomfortable truth is that the majority of Azure VMs are oversized for their actual workloads, silently consuming budget that could be better allocated elsewhere.

Right-sizing is the process of matching your virtual machine configurations to your actual resource requirements. It sounds straightforward, but in practice it requires careful analysis, understanding of Azure's VM families and pricing, and ongoing vigilance to ensure that resource allocation stays aligned with demand as workloads evolve. The potential savings are substantial — organisations that systematically right-size their Azure VMs typically achieve cost reductions of 20% to 40% on compute spend.

This guide explains how to identify oversized VMs, select the right VM sizes, implement right-sizing changes safely, and establish ongoing governance to prevent waste from creeping back in.

73%
of Azure VMs are oversized for their actual workloads
35%
Average savings from systematic right-sizing
£18K
Average annual waste from oversized VMs per 20 VMs
14 days
Minimum monitoring period before right-sizing

Why Are Azure VMs Typically Oversized?

Oversizing happens for perfectly understandable reasons. When migrating from on-premise servers, teams often match or exceed the original server specifications "just to be safe." Development teams request generous resources to avoid performance issues during testing. And once a VM is running in production, nobody wants to be the person who reduces its resources and causes an outage. The result is an environment where VMs routinely have far more CPU, memory, and storage than they actually use.

The psychology of cloud resource allocation creates a natural bias towards oversizing. In on-premise environments, adding more resources after deployment is difficult and expensive — you might need to buy new hardware, schedule downtime, and physically install components. In the cloud, resources are elastic, but the mindset from the on-premise era persists. People provision for the worst case and never revisit the decision.

Azure Advisor: Your Built-In Right-Sizing Tool

Azure Advisor is a free service built into the Azure portal that analyses your resource usage patterns and provides specific right-sizing recommendations. It monitors CPU utilisation, memory usage, and network throughput over time, then suggests smaller VM sizes that would still meet your workload requirements. Azure Advisor recommendations are the starting point for any right-sizing exercise, but they should be validated against application-specific requirements rather than implemented blindly.

Understanding Azure VM Families

Azure offers a bewildering array of VM sizes, organised into families based on their intended use case. Understanding these families is essential for right-sizing, because choosing the right family is as important as choosing the right size within that family.

VM Family Optimised For Typical Use Cases UK Region Pricing (example)
B-series (Burstable) Variable workloads with low average CPU Dev/test, small web servers, micro-services From £0.004/hr (B1s)
D-series (General Purpose) Balanced CPU-to-memory ratio Application servers, databases, ERP systems From £0.04/hr (D2s v5)
E-series (Memory Optimised) High memory-to-CPU ratio Large databases, in-memory caching, analytics From £0.05/hr (E2s v5)
F-series (Compute Optimised) High CPU-to-memory ratio Batch processing, gaming servers, modelling From £0.04/hr (F2s v2)
L-series (Storage Optimised) High disk throughput and IOPS Big data, SQL and NoSQL databases, data warehousing From £0.06/hr (L8s v3)

The Right-Sizing Process

Effective right-sizing follows a structured process: monitor, analyse, recommend, implement, and verify. Skipping steps or rushing the process increases the risk of performance issues, which can erode stakeholder confidence in cloud cost optimisation.

Step 1: Establish Monitoring

Before making any changes, ensure comprehensive monitoring is in place. Azure Monitor collects CPU, memory, disk, and network metrics by default for all VMs. However, to get memory utilisation data (which is critical for right-sizing), you need to enable the Azure Monitor Agent and configure the appropriate data collection rules. Without memory data, you are making decisions with only half the picture — a VM might show low CPU usage but be heavily utilising memory, making a downsize inappropriate.

Step 2: Collect Sufficient Data

A minimum of 14 days of monitoring data is recommended, and 30 days is preferable. This ensures you capture weekly patterns, month-end processing peaks, and any other cyclical workload variations. Making right-sizing decisions based on a few days of data risks missing periodic spikes that could cause problems after downsizing.

Step 3: Analyse and Recommend

Review the monitoring data for each VM, looking at average, peak, and 95th percentile utilisation for CPU, memory, and disk I/O. A VM that averages 8% CPU utilisation with peaks of 25% is a strong candidate for downsizing. A VM that averages 12% CPU but peaks at 90% during month-end processing requires more careful analysis — you might keep the current size but consider Azure Spot instances or reserved instances to reduce cost without reducing capacity.

VMs with <10% avg CPU utilisation
38%
VMs with 10-30% avg CPU utilisation
35%
VMs with 30-60% avg CPU utilisation
18%
VMs with 60-80% avg CPU utilisation
6%
VMs with >80% avg CPU utilisation
3%

Step 4: Implement Changes

Resizing an Azure VM is technically straightforward — it requires a brief stop and restart of the VM, typically taking 2 to 5 minutes. However, this means a short outage for the application running on that VM, so changes should be scheduled during maintenance windows. For critical production systems, consider implementing changes during off-hours and having a rollback plan ready — you can resize back to the original size if issues arise.

Step 5: Verify and Iterate

After implementing right-sizing changes, monitor the affected VMs closely for at least two weeks. Verify that performance metrics remain within acceptable ranges and that application response times have not degraded. Right-sizing is not a one-off exercise — it should be repeated quarterly as workloads evolve, new applications are deployed, and business requirements change.

Beyond Right-Sizing: Additional Azure Cost Optimisation

Right-sizing is the foundation of Azure cost management, but it should be combined with other optimisation strategies for maximum impact. Azure Reserved Instances offer discounts of 30% to 72% for VMs committed to one or three-year terms. Azure Hybrid Benefit allows organisations with existing Windows Server licences to use them in Azure, saving up to 40% on Windows VM costs. Auto-shutdown policies for development and testing VMs that do not need to run 24/7 can halve their costs instantly.

Cost Optimisation Best Practices

  • Right-size VMs based on actual utilisation data
  • Use Reserved Instances for predictable workloads
  • Apply Azure Hybrid Benefit for Windows licences
  • Auto-shutdown dev/test VMs outside hours
  • Use B-series burstable VMs for low-CPU workloads
  • Review Azure Advisor recommendations weekly
  • Tag all resources for cost allocation
  • Set budget alerts to catch unexpected spend

Common Cost Mistakes

  • Matching on-premise specs without analysis
  • Using Pay-As-You-Go for production workloads
  • Running dev/test VMs 24/7 unnecessarily
  • Using premium storage for non-critical VMs
  • Not monitoring utilisation after deployment
  • Ignoring Azure Advisor recommendations
  • No resource tagging or cost attribution
  • No budget alerts or spending governance

Reduce Your Azure Spend Today

Cloudswitched helps UK businesses optimise their Azure environments for performance and cost efficiency. From right-sizing assessments and Reserved Instance planning to comprehensive Azure governance, we ensure every pound of your cloud budget delivers value. Get in touch for a free Azure cost review.

GET IN TOUCH
Tags:Azure VMsCost OptimisationRight-Sizing
CloudSwitched
CloudSwitched

Centrally located in London, Shoreditch, we offer a range of IT services and solutions to small/medium sized companies.