Azure-cli: "az stop" doesn't actually stop VM

Created on 5 Nov 2017  路  3Comments  路  Source: Azure/azure-cli


Environment summary

Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

pip / OS X Sierra / zsh

STR:

  • Stop a VM with az vm stop
  • Try to resize a managed disk on the vm

EXPECTED:

  • managed disk is resized

ACTUAL:

az disk update -g aks-underlay-svc --name k8s-master-18898983-1-etcddisk -z 4000

Cannot resize disk k8s-master-18898983-1-etcddisk while it is attached to running VM /subscriptions/.../resourceGroups/aks-underlay-svc /providers/Microsoft.Compute/virtualMachines/k8s-master-18898983-1.

This is different behavior than stopping a VM in the Portal, which appears to actually stop the machine.

Compute question

Most helpful comment

All 3 comments

@seanknox The portal actually de-allocates the VM, rather just powers off. There is inconsistency here which I will clarify with the portal folks. At the same time, you can use az vm deallocate.

Let us keep on using #3026 for tracking. Closing this one...

Was this page helpful?
0 / 5 - 0 ratings