【发布时间】:2020-01-18 02:22:52
【问题描述】:
我只能访问托管在 Azure 上的 Windows VM。
有没有办法找出虚拟机内部的 VM 大小,例如通过命令行 (powershell / cmd),而不需要有关环境的更多信息,例如资源组或 VM 资源名称?
我确实找到了这样的方法,但它需要有关 VM 名称和资源组的信息:
$VM = Get-AzureRMVM –Name HSG-Linux1 –ResourceGroupName HSG-AzureRG
$VM.HardwareProfile
【问题讨论】:
标签: windows azure powershell azure-powershell