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
- Create a resource group
- List resource groups
- Delete a resource group
- Create a Linux VM
- List VMs and their IPs
- Start a VM
All resource groups and vms commands · Azure CLI 2 cheatsheet