Azure CLI 2 · Resource groups and VMs

Stop and deallocate a VM

Deallocate to stop paying for compute. A plain stop keeps billing.

az vm deallocate --resource-group my-rg --name my-vm

Official Azure CLI 2 documentation

More resource groups and vms commands

All resource groups and vms commands · Azure CLI 2 cheatsheet

Was this page helpful?