LoginSignup
0
0

More than 5 years have passed since last update.

AzureVMのPrivate IP Addressを出力する

Last updated at Posted at 2019-05-15

Azure VMの(正確にいうとNICの)プライベートIPを一覧出力したい。
そんな時のAzure Powershell。
(パブリックIPは普通に出るんですが…。)

コマンド

$rgName = "リソースグループ名"
$niclist = Get-AzureRmNetworkInterface -ResourceGroupName $rgName
foreach ( $nic in $niclist ){Write-Host $nic.Name,$nic.IpConfigurations.PrivateIpAddress}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0