Skip to content

Latest commit

 

History

History
109 lines (77 loc) · 3.1 KB

Remove-AzureRmNetworkInterfaceIpConfig.md

File metadata and controls

109 lines (77 loc) · 3.1 KB
external help file Module Name ms.assetid online version schema
Microsoft.Azure.Commands.Network.dll-Help.xml
AzureRM.Network
015C7DB7-2B08-4033-9B6E-1738D4DDACDA
2.0.0

Remove-AzureRmNetworkInterfaceIpConfig

SYNOPSIS

Removes a network interface IP configuration from a network interface.

SYNTAX

Remove-AzureRmNetworkInterfaceIpConfig -Name <String> -NetworkInterface <PSNetworkInterface>
 [-DefaultProfile <IAzureContextContainer>] [<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.

PARAMETERS

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzureRmContext, AzureCredential

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

-Name

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

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
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: Microsoft.Azure.Commands.Network.Models.PSNetworkInterface
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Microsoft.Azure.Commands.Network.Models.PSNetworkInterface

Parameters: NetworkInterface (ByValue)

OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSNetworkInterface

NOTES

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

RELATED LINKS

Add-AzureRmNetworkInterfaceIpConfig

Get-AzureRmNetworkInterfaceIpConfig

New-AzureRmNetworkInterfaceIpConfig

Set-AzureRmNetworkInterfaceIpConfig