如何在 Azure 的 powershell 中获取 VmSize
How to get VmSize in powershell on Azure
我想写VmSize。当我输入 get-azvm
时,我拥有有关 VM 的所有信息
当我输入 get-azvm |select VmSize
时,我有一个空变量
我怎样才能得到这个信息?
我在网上搜索信息我只找到如何在本地化中获取有关磁盘的信息。
----------------- ---- -------- ------ ------ --- ----------------- ----
WITRG maszynatestowa westeurope Standard_D2s_v3 Windows maszynatestowa Succeeded
WITRG2 Druga westeurope Standard_DS1_v2 Windows druga783 Succeeded
WITRG2 WitVM2 westeurope Standard_D2s_v3 Windows WitVM2 Succeeded
获取 AzVM | select -ExpandProperty HardwareProfile
我有办法
Get-AzVM |select -ExpandProperty HardwareProfile
我想写VmSize。当我输入 get-azvm
时,我拥有有关 VM 的所有信息
当我输入 get-azvm |select VmSize
时,我有一个空变量
我怎样才能得到这个信息?
我在网上搜索信息我只找到如何在本地化中获取有关磁盘的信息。
----------------- ---- -------- ------ ------ --- ----------------- ----
WITRG maszynatestowa westeurope Standard_D2s_v3 Windows maszynatestowa Succeeded
WITRG2 Druga westeurope Standard_DS1_v2 Windows druga783 Succeeded
WITRG2 WitVM2 westeurope Standard_D2s_v3 Windows WitVM2 Succeeded
获取 AzVM | select -ExpandProperty HardwareProfile
我有办法
Get-AzVM |select -ExpandProperty HardwareProfile