Edit

Share via


Resize a lab VM in Azure DevTest Labs

Azure DevTest Labs supports changing the size of a lab virtual machine (VM), based on changing needs for CPU, network, or disk performance. This article describes how to resize a lab VM.

Prerequisites

  • To resize a VM, you must be a lab administrator or an owner of the VM.
  • If the lab sets an allowed VM sizes policy, you can resize the VM only to sizes that the policy permits.

Stop the VM

To avoid losing work, stop the VM before you resize it. To stop a VM, disconnect from it, and select Stop on the top toolbar of the VM's Overview page in the Azure portal.

Screenshot that shows selecting Stop on the Overview page for a VM.

Resize the VM

  1. On the VM's Overview page, select Size under Settings in the left navigation menu.

    Screenshot that shows selecting Size in the VM's left navigation.

  2. On the Select a VM size screen, select a new size for your VM, and then select Select.

    Screenshot that shows selecting a V M size.

You can check the status of the resize operation in the Notifications window.

Screenshot of the Notifications window that shows resizing status.

Note

If the resize operation fails with an error that Resizing virtual machines with shared IP configuration is not supported, you need to add and associate a Public IP address to the VM before you can resize it. For more information, see Associate a public IP address to a virtual machine.

When the resize operation finishes, you can start the VM by selecting Start from the VM Overview page top toolbar, and then connect to the VM by selecting Connect in the toolbar.

For more information about the resize feature for Azure VMs, see Resize virtual machines.