az vm restartIT technician command center
Azure CLI · Microsoft Azure

az vm restart

Restart an Azure virtual machine.

Copy-ready commandaz vm restart
az vm restart -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

Restart an Azure virtual machine.

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

Common errors

Command not found

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