Change the size of a virtual machine
Applies to: ✔️ Linux VMs ✔️ Windows VMs ✔️ Flexible scale sets
This article shows you how to move a VM to a different VM size.
After you create a virtual machine (VM), you can scale the VM up or down by changing the VM size. In some cases, you must deallocate the VM first. This can happen if the new size is not available on the hardware cluster that is currently hosting the VM.
If your VM uses Premium Storage, make sure that you choose an s version of the size to get Premium Storage support. For example, choose Standard_E4s_v3 instead of Standard_E4_v3.
Change the VM size
- Open the Azure portal.
- Open the page for the virtual machine.
- In the left menu, select Size.
- Pick a new size from the list of available sizes and then select Resize.
If the virtual machine is currently running, changing its size will cause it to be restarted.
If your VM is still running and you don't see the size you want in the list, stopping the virtual machine may reveal more sizes.
Deallocating the VM also releases any dynamic IP addresses assigned to the VM. The OS and data disks are not affected.
If you are resizing a production VM, consider using Azure Capacity Reservations to reserve Compute capacity in the region.
For additional scalability, run multiple VM instances and scale out. For more information, see Automatically scale machines in a Virtual Machine Scale Set.
Submit and view feedback for