← 返回命令列表

Linux command

az-serial-console 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Connect to a VM's serial console

az serial-console connect --name [MyVM] --resource-group [MyResourceGroup]

Enable serial console

az serial-console enable --name [MyVM] --resource-group [MyResourceGroup]

Disable serial console

az serial-console disable --name [MyVM] --resource-group [MyResourceGroup]

Send NMI

az serial-console send nmi --name [MyVM] --resource-group [MyResourceGroup]

说明

az serial-console provides direct serial console access to Azure VMs for troubleshooting. Serial console enables text-based access to VMs when network connectivity or SSH/RDP is unavailable. This is useful for debugging boot issues, network misconfigurations, or when the VM's operating system is unresponsive.

参数

--name -n
Name of the virtual machine.
--resource-group -g
Name of resource group.

FAQ

What is the az-serial-console command used for?

az serial-console provides direct serial console access to Azure VMs for troubleshooting. Serial console enables text-based access to VMs when network connectivity or SSH/RDP is unavailable. This is useful for debugging boot issues, network misconfigurations, or when the VM's operating system is unresponsive.

How do I run a basic az-serial-console example?

Run `az serial-console connect --name [MyVM] --resource-group [MyResourceGroup]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --name -n do in az-serial-console?

Name of the virtual machine.