获取 AzureRmVM | Export-CSV 不提供 Vmsize
Get-AzureRmVM | Export-CSV does not provide Vmsize
当我执行时:
Get-AzureRmVM
它给出以下输出:
Resource Group Name Location Vm-Size OsType NIC State
XZSANDBOXRG Jxx eastus "Standard_DS11_v2" Windows jxx360 Succeeded
但是当我执行时:
Get-AzureRmVM | export-csv ALLVMdetails.csv
它不提供 Vm-Size
,而是提供 VmId
。
以下命令应该适合您。
Get-AzureRmVM -Status|Out-File D:\test.csv
Get-AzureRmVM
无法获取 VMsize。
当我执行时:
Get-AzureRmVM
它给出以下输出:
Resource Group Name Location Vm-Size OsType NIC State
XZSANDBOXRG Jxx eastus "Standard_DS11_v2" Windows jxx360 Succeeded
但是当我执行时:
Get-AzureRmVM | export-csv ALLVMdetails.csv
它不提供 Vm-Size
,而是提供 VmId
。
以下命令应该适合您。
Get-AzureRmVM -Status|Out-File D:\test.csv
Get-AzureRmVM
无法获取 VMsize。