Powershell:Azure VM的其他IP详细信息

时间:2015-04-09 09:22:19

标签: azure azure-powershell azure-virtual-network

我的azure VM中有4个额外的IP。我需要使用powerShell命令列出所有这些IP。可能的出路是什么?

提前致谢。

1 个答案:

答案 0 :(得分:0)

几天后我才知道vmconfig-file中列出了额外的IP。我能够使用this-

创建和保存vmconfig文件
$vmName= "xyz"
$srcServiceName = "lmno"
$sourceVm = Get-AzureVM –ServiceName $srcServiceName –Name $vmName
$vmConfigurationPath = "C:\MyFolder" + '\' + $vmName +".xml"
$sourceVm | Export-AzureVM -Path $vmConfigurationPath

我能够看到更多的IP

enter image description here

这符合我的目的。感谢。

相关问题