Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell:Azure VM的其他IP详细信息_Azure_Azure Powershell_Azure Virtual Network - Fatal编程技术网

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

Powershell:Azure VM的其他IP详细信息,azure,azure-powershell,azure-virtual-network,Azure,Azure Powershell,Azure Virtual Network,我的azure VM中还有4个额外的IP。我需要使用powerShell命令列出所有这些IP。可能的出路是什么 提前感谢。几天后,我知道vmconfig文件中列出了添加的IP。我能够使用以下命令创建并保存vmconfig文件- $vmName= "xyz" $srcServiceName = "lmno" $sourceVm = Get-AzureVM –ServiceName $srcServiceName –Name $vmName $vmConfigurationPath = "C:\My

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


提前感谢。

几天后,我知道vmconfig文件中列出了添加的IP。我能够使用以下命令创建并保存vmconfig文件-

$vmName= "xyz"
$srcServiceName = "lmno"
$sourceVm = Get-AzureVM –ServiceName $srcServiceName –Name $vmName
$vmConfigurationPath = "C:\MyFolder" + '\' + $vmName +".xml"
$sourceVm | Export-AzureVM -Path $vmConfigurationPath
我能够看到额外的IP


这符合我的目的。谢谢。

你说的可能的方法是什么意思?你是说避开powershell?不,我想要一个powershell脚本