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

Removes a network interface IP configuration from a network interface.

Syntax

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

Description

The Remove-AzureRmNetworkInterfaceIpConfig cmdlet removes a network interface IP configuration from an Azure network interface.

Examples

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.

Required Parameters

-Name

Specifies the name of the network interface IP configuration to remove.

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

Specifies a NetworkInterface object. This object contains the network interface IP configuration to remove.

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

Notes

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