0

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

提前致谢。

4

1 回答 1

0

After several days I came to know addition IP's are listed in vmconfig-file. I was able to create and save vmconfig file using this-

$vmName= "xyz"
$srcServiceName = "lmno"
$sourceVm = Get-AzureVM –ServiceName $srcServiceName –Name $vmName
$vmConfigurationPath = "C:\MyFolder" + '\' + $vmName +".xml"
$sourceVm | Export-AzureVM -Path $vmConfigurationPath

I was able to see additional IP's

enter image description here

This served my purpose. Thanks.

于 2015-04-27T08:32:48.980 回答