az vm deallocateIT technician command center
Azure CLI · Microsoft Azure

az vm deallocate

Deallocate an Azure virtual machine.

Copy-ready commandaz vm deallocate
az vm deallocate -g rg-app-prod -n vm01
Production 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 vm01

Common errors

Command not found

Confirm Azure CLI is installed and available in your current shell.