Copy-ready commandaz vm deallocate
az vm deallocate -g rg-app-prod -n vm01Production warning
Resource start, stop, restart, create, and deallocate operations affect workloads.
Requirements and permissions
- Requirements
- Azure CLI
- Permissions
- Azure RBAC permissions vary
- Last reviewed
- 2026-07-31
Examples
Basic example
Deallocate an Azure virtual machine.
az vm deallocate -g rg-app-prod -n vm01Common errors
Command not found
Confirm Azure CLI is installed and available in your current shell.