Get-AzureRmNetworkInterfaceIpConfig
Gets a network interface IP configuration for a network interface.
Caution
Because Az PowerShell modules now have all the capabilities of AzureRM PowerShell modules and more, we'll retire AzureRM PowerShell modules on 29 February 2024.
To avoid service interruptions, update your scripts that use AzureRM PowerShell modules to use Az PowerShell modules by 29 February 2024. To automatically update your scripts, follow the quickstart guide.
Syntax
Get-AzureRmNetworkInterfaceIpConfig
[-Name <String>]
-NetworkInterface <PSNetworkInterface>
[-DefaultProfile <IAzureContextContainer>]
[<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.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
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 |
-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 |
Accept wildcard characters: | False |
Inputs
Parameters: NetworkInterface (ByValue)
Outputs
PSNetworkInterfaceIPConfiguration
Notes
- Keywords: azure, azurerm, arm, resource, management, manager, network, networking