【问题标题】:Is there an Azure command line interface for these AWS CLI functions这些 AWS CLI 功能是否有 Azure 命令行界面
【发布时间】:2015-11-22 09:36:38
【问题描述】:
我有一个应用程序,它使用 Aamzon 命令行界面来描述、启动、停止和重新启动实例。我想在 Azure 上构建一个版本。有谁知道是否有类似 Azure 的 CLI 接口?
ec2-describe-instances
ec2-reboot-instances
ec2-start-instances
ec2-stop-instances
【问题讨论】:
标签:
powershell
azure
amazon-web-services
command-line-interface
【解决方案1】:
您可以使用 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