Remove-NetVirtualizationProviderAddress

Deletes Provider Addresses.

Syntax

Remove-NetVirtualizationProviderAddress
      [-ProviderAddress <String[]>]
      [-InterfaceIndex <UInt32[]>]
      [-PrefixLength <Byte[]>]
      [-VlanID <UInt16[]>]
      [-AddressState <AddressState[]>]
      [-MACAddress <String[]>]
      [-ManagedByCluster <Boolean[]>]
      [-CimSession <CimSession[]>]
      [-ThrottleLimit <Int32>]
      [-AsJob]
      [-PassThru]
      [<CommonParameters>]
Remove-NetVirtualizationProviderAddress
      -InputObject <CimInstance[]>
      [-CimSession <CimSession[]>]
      [-ThrottleLimit <Int32>]
      [-AsJob]
      [-PassThru]
      [<CommonParameters>]

Description

The Remove-NetVirtualizationProviderAddress cmdlet deletes Provider Addresses configured in hv_win8_1 Network Virtualization. A Provider Address is an IPv4 or IPv6 address that Network Virtualization uses for multiple virtual Customer Addresses. For more information, see Network Virtualization technical detailshttp://technet.microsoft.com/library/jj134174.aspx (http://technet.microsoft.com/library/jj134174.aspx) on TechNet.

You can specify which Provider Addresses to delete by using address state, interface index, prefix length, IP address, or VLAN ID, or you can use the Get-NetVirtualizationProviderAddress cmdlet to get Provider Addresses to delete.

You can use this cmdlet to remove a Provider Address when no virtual machines (VMs) use that address. If you deleted or migrated all the VMs from a hv_win8_2 host, you could then remove the Provider Address.

Examples

Example 1: Remove a Provider Address

PS C:\> Remove-NetVirtualizationProviderAddress -ProviderAddress "2001:DB8:11:22:33:44:55:6"

This command deletes the Provider Address 2001:DB8:11:22:33:44:55:6 on the current host.

Example 2: Remove Provider Addresses for an interface

PS C:\>Remove-NetVirtualizationProviderAddress -InterfaceIndex 13

This command removes all the Provider Addresses on the interface that has an index of 13.

Required Parameters

-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

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

Optional Parameters

-AddressState

Specifies an array of states of Provider Addresses. The acceptable values for this parameter are:

  • Preferred. The address is unique.
  • Tentative. The address is not yet verified.
  • Duplicate. There is a duplicate address on the network.
  • Invalid. The address lifetime has expired.
  • Deprecated. The address cannot start new connections.
Type:AddressState[]
Parameter Sets:Invalid, Tentative, Duplicate, Deprecated, Preferred
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AsJob

ps_cimcommon_asjob

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CimSession

ps_cimcommon_asjob

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InterfaceIndex

Specifies an array of indexes for network interfaces that have hv_win8_2 Network Virtualization enabled.

Type:UInt32[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MACAddress

Specifies an array of media access control (MAC) addresses that corresponds to the Provider Address.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ManagedByCluster

Specifies an array of Boolean values that determines if a highly available Provider Address (PA) configuration entry exists on a Hyper-V Network Virtualization gateway. If you use a PA cluster resource, this value displays as $True; otherwise, the value displays as $False. This parameter is a read-only parameter, used by an administrator to diagnose problems.

Type:Boolean[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrefixLength

Specifies an array of lengths of IP prefixes.

Type:Byte[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProviderAddress

Specifies an array of IP addresses. You can use IPv4 or IPv6 addresses.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VlanID

Specifies an array of IDs for VLANs for Provider Addresses.

Type:UInt16[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False