Get-​Azure​Rm​Network​Interface​Ip​Config

Gets a network interface IP configuration for a network interface.

Syntax

Get-AzureRmNetworkInterfaceIpConfig
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-Name <String>]
   -NetworkInterface <PSNetworkInterface>
   [<CommonParameters>]

Description

The Get-AzureRmNetworkInterfaceIPConfig cmdlet gets a network interface IP configuration from an Azure network interface.

Examples

1: Get an IP configuration of a network interface

$nic1 = Get-AzureRmNetworkInterface -Name mynic -ResourceGroupName $myrg
Get-AzureRmNetworkInterfaceIpConfig -Name ipconfig1 -NetworkInterface $nic1

The first command gets an existing network interface called mynic and stores it in the variable $nic1. The second command gets the IP configuration called ipconfig1 of this network interface.

Required Parameters

-NetworkInterface

Specifies a NetworkInterface object that contains the network IP configuration that this cmdlet gets.

Type:PSNetworkInterface
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the network IP configuration that this cmdlet gets.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Notes

  • Keywords: azure, azurerm, arm, resource, management, manager, network, networking