az vm deallocate — Basic UsageIT technician command center
Azure CLI · Microsoft Azure

az vm deallocate — Basic Usage

Use az vm deallocate for a standard administrative task.

Copy-ready commandaz vm deallocate — Basic Usage
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 Usage

Use az vm deallocate for a standard administrative task.

az vm deallocate -g rg-app-prod -n vm01

Original command

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.