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

az vm restart — Basic Usage

Use az vm restart for a standard administrative task.

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

Use az vm restart for a standard administrative task.

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

Original command

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.