CmdID

CmdID / az / az serial-console / az serial-console send

az serial-console send reset

Perform a "hard" restart of the VM or VMSS Instance Azure CLI extensions reference

This results in a "hard" restart, like powering the computer down, then back up again. This can result in data loss in the virtual machine. You should only perform this operation if a graceful restart is not effective.

2 examples 4 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Hard reset a VM

az serial-console send reset -n MyVM -g MyResourceGroupIdentify
-nName of the Virtual Machine or Virtual Machine Scale Set.
-gName of resource group.

Hard rest a VMSS Instance with ID 2

az serial-console send reset -n MyVMSS -g MyResourceGroup --instance-id 2Identify
-nName of the Virtual Machine or Virtual Machine Scale Set.
-gName of resource group.
--instance-idID of VMSS instance.

Options

4 in the Azure CLI extensions reference
--instance-idID of VMSS instance.
--name, -nName of the Virtual Machine or Virtual Machine Scale Set.
--resource-group, -gName of resource group.
--subscriptionName or ID of subscription.