azureazure-devopsazure-vm

Adjusting Azure VM size without Rebooting VM


Is there any way I can resize my existing VM without rebooting it or is it always like stopping the VM and then reboot?

As far as my understanding is I can change the size of the VM without rebooting it. Please guide me on this as I don't want any problem in VM while resizing.

Thank you.


Solution

  • From the docs:

    If the virtual machine is currently running, changing its size will cause it to be restarted. Stopping the virtual machine may reveal additional sizes.

    Changing the VM size will cause the VM to restart.

    Also worth nothing: for some sizes to be available to you (usually when resizing the VM from one generation to another), you'll need to stop the VM before attempting to resize.


    Documentation Link: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/resize-vm