Using Console
Using CLI
az vm show --resource-group <resource-group-name> --name <vm-name> --query hardwareProfile.vmSize
Replace <resource-group-name>
with the name of the resource group where the virtual machine is located, and <vm-name>
with the name of the virtual machine.
az vm resize --resource-group <resource-group-name> --name <vm-name> --size <desired-vm-size>
Replace <resource-group-name>
with the name of the resource group where the virtual machine is located, <vm-name>
with the name of the virtual machine, and <desired-vm-size>
with the desired VM SKU size.
az vm show --resource-group <resource-group-name> --name <vm-name> --query provisioningState
The command will return “Succeeded” once the operation is completed.
az vm show --resource-group <resource-group-name> --name <vm-name> --query hardwareProfile.vmSize
The command should return the desired VM SKU size.
Using Python