Why it matters
Older series are slower and dearer than the current generation, and they are retired over time. Moving early saves money and avoids a forced migration later.How nOps finds it
nOps reads the last 14 days of Azure VM and scale set billing. A VM is flagged when it ran on pay-as-you-go on at least 7 of those days, was billed in the last 2 days, and is not mostly covered by reservations. Its 7-day pay-as-you-go compute cost, scaled to a month, is multiplied by the difference between the old size’s list price and the target size’s list price in the same region and operating system. The target must be at least 3% cheaper, the service must not be mostly paid with credits, and the saving must be at least $5 a month. For D v3 and E v3 VMs where the AMD size is as cheap or cheaper, nOps shows the AMD recommendation instead.Before you start
Permission to resize the VM, and a maintenance window: resizing restarts it.How to implement
- Check the target size shown in the recommendation. Sizes without a local temp disk need the d variant if the VM keeps data on its temp drive.
- Check the target size is offered in the VM’s region and availability zone, and that it supports the VM’s disk types and network settings.
- Resize the VM (portal: VM → Size, or
az vm resize --resource-group RESOURCE_GROUP --name VM_NAME --size SIZE). If the size is not offered, deallocate the VM first. For a scale set, change its size and update the instances. - Update Terraform, Bicep or ARM templates so a later deployment does not change it back.
Risks and considerations
- Resizing restarts the VM. Data on the temporary disk is lost.
- Some older VMs use generation 1 images or settings that a newer size does not support; check before resizing.
- Reservations for the old size may not cover the new one.
- To roll back, resize back to the original size.
FAQs
Why does a D v2 VM sometimes map to an E series size?
Why does a D v2 VM sometimes map to an E series size?
D11 to D15 v2 are memory-optimized sizes. Their current equivalent is in the E series, which keeps the same memory per vCPU.