0

How to change machine type with Azure Bash CLI after (a Linux) VM has already been created? Need to bump up a level when I need the CPU power.

PS. This cannot be done on-the-fly but have to do after power-off, right?

1 Answer 1

1

The Azure CLI command 'az vm resize' will handle this. This operation can be completed on a running VM. The VM reboots after the command is entered.

The command syntax is:

$ az vm resize --name <VM-Name> --resource-group <Resource-Group-Name> --size <New-VM-Size>

See: https://docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest#az-vm-resize

1
  • 1
    Just confirmed that the VM reboots when running the command to change VM size.
    – Toby Drake
    Commented Sep 5, 2018 at 14:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .