This is a extension for Serial Console Connections
Install this extension using the CLI command below
az extension add --name serial-console
To exit serial console type Ctrl + ] and then q. To send an NMI/SysRq/Reset type Ctrl + ] and then n/s/r respectively.
az serial-console connect -n MyVM -g MyResourceGroup
az serial-console enable
az serial-console disable
az serial-console send nmi -n MyVM -g MyResourceGroup
az serial-console send sysrq -n MyVM -g MyResourceGroup --input c
az serial-console send reset -n MyVM -g MyResourceGroup