【发布时间】:2018-03-08 00:25:58
【问题描述】:
我在 Windows Server (x64) 上创建了一个“Visual Studio Enterprise 2017(最新版本)”虚拟机。我想通过 Powershell 启动和停止这台机器。
#Login
Add-AzureAccount
#Enterprize subscription. Id can be found by seraching for subsription in the portal
Select-AzureSubscription -SubscriptionId xxxxxx-xxxe-xxxx5-8xxxx-e2xxxxxxxx1c
#Should list VMs but returns nothing
Get-AzureVM
#Asks for ServiceName that I cannot find
Start-AzureVM -Name NigelsPcWUS
如何找到与我的 VM 对应的 ServiceName?或者有更好的方法吗?
【问题讨论】:
标签: powershell azure azure-automation