< Back
Remove-AzureRmNetworkInterfaceIpConfig
Post
NAME Remove-AzureRmNetworkInterfaceIpConfig
SYNOPSIS
Removes a network interface IP configuration from a network interface.
SYNTAX
Remove-AzureRmNetworkInterfaceIpConfig [-DefaultProfile <IAzureContextContainer>] -Name <String> -NetworkInterface <PSNetworkInterface>
[<CommonParameters>]
DESCRIPTION
The Remove-AzureRmNetworkInterfaceIpConfig cmdlet removes a network interface IP configuration from an Azure network interface.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the network interface IP configuration to remove.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-NetworkInterface <PSNetworkInterface>
Specifies a NetworkInterface object. This object contains the network interface IP configuration to remove.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
PSNetworkInterface
Parameter 'NetworkInterface' accepts value of type 'PSNetworkInterface' from the pipeline
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSNetworkInterface
NOTES
* Keywords: azure, azurerm, arm, resource, management, manager, network, networking
1: Delete an IP configuration from a network interface
$nic = Get-AzureRmNetworkInterface -Name mynic -ResourceGroupName myrg
Remove-AzureRmNetworkInterfaceIpConfig -Name IPConfig-1 -NetworkInterface $nic
The first command gets a network interface called mynic and stores it in the variable $nic. The second command removes the IP configuration
called IPConfig-1 associated with this network interface.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ceipconfig
Add-AzureRmNetworkInterfaceIpConfig
Get-AzureRmNetworkInterfaceIpConfig
New-AzureRmNetworkInterfaceIpConfig
Set-AzureRmNetworkInterfaceIpConfig
SYNOPSIS
Removes a network interface IP configuration from a network interface.
SYNTAX
Remove-AzureRmNetworkInterfaceIpConfig [-DefaultProfile <IAzureContextContainer>] -Name <String> -NetworkInterface <PSNetworkInterface>
[<CommonParameters>]
DESCRIPTION
The Remove-AzureRmNetworkInterfaceIpConfig cmdlet removes a network interface IP configuration from an Azure network interface.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the network interface IP configuration to remove.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-NetworkInterface <PSNetworkInterface>
Specifies a NetworkInterface object. This object contains the network interface IP configuration to remove.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
PSNetworkInterface
Parameter 'NetworkInterface' accepts value of type 'PSNetworkInterface' from the pipeline
OUTPUTS
Microsoft.Azure.Commands.Network.Models.PSNetworkInterface
NOTES
* Keywords: azure, azurerm, arm, resource, management, manager, network, networking
1: Delete an IP configuration from a network interface
$nic = Get-AzureRmNetworkInterface -Name mynic -ResourceGroupName myrg
Remove-AzureRmNetworkInterfaceIpConfig -Name IPConfig-1 -NetworkInterface $nic
The first command gets a network interface called mynic and stores it in the variable $nic. The second command removes the IP configuration
called IPConfig-1 associated with this network interface.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ceipconfig
Add-AzureRmNetworkInterfaceIpConfig
Get-AzureRmNetworkInterfaceIpConfig
New-AzureRmNetworkInterfaceIpConfig
Set-AzureRmNetworkInterfaceIpConfig