CmdID

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

az serial-console send sysrq

Send SysRq sequence to a VM or VMSS Instance Azure CLI extensions reference

A SysRq is a sequence of keys understood by the Linux operation system kernel, which can trigger a set of pre-defined actions. These commands are often used when virtual machine troubleshooting or recovery can't be performed through traditional administration (for example, if the VM is not responding).

2 examples 5 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

Send SysRq to VM to crash system

az serial-console send sysrq -n MyVM -g MyResourceGroup --input cIdentify
-nName of the Virtual Machine or Virtual Machine Scale Set.
-gName of resource group.
--inputInput key to send over serial console.

Send SysRq to VMSS Instance with ID 2 to crash system

az serial-console send sysrq -n MyVMSS -g MyResourceGroup --instance-id 2 --input cIdentify
-nName of the Virtual Machine or Virtual Machine Scale Set.
-gName of resource group.
--instance-idID of VMSS instance.
--inputInput key to send over serial console.

Options

5 in the Azure CLI extensions reference
--inputInput key to send over serial console.
--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.