我有一个应用程序,它使用Aamzon命令行界面来描述,启动,停止和重新启动实例。我想在Azure上构建一个版本。有没有人知道以下是否有适用于Azure的界面的CLI?
ec2-describe-instances
ec2-reboot-instances
ec2-start-instances
ec2-stop-instances
答案 0 :(得分:0)
您可以使用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