这些 AWS CLI 函数是否有 Azure 命令行界面

Is there an Azure command line interface for these AWS CLI functions

我有一个使用 Aamzon 命令行界面来描述、启动、停止和重启实例的应用程序。我想在 Azure 上构建一个版本。有谁知道下面的 Azure 是否有类似 CLI 的界面?

ec2-describe-instances

ec2-reboot-instances

ec2-start-instances

ec2-stop-instances

您可以使用 azure powershell 或 azure xcli

在 Azure 上 xcli 这些命令是

azure vm show
azure vm restart
azure vm start
azure vm stop

到您可以使用的列表

azure vm list

Powershell 上的命令是

Get-AzureVM
Restart-AzureVM
Start-AzureVM
Stop-AzureVM