Add-​Azure​Rm​Virtual​Network​Gateway​Ip​Config

Adds an IP configuration to a virtual network gateway.

Syntax

Add-AzureRmVirtualNetworkGatewayIpConfig
   -Name <String>
   [-PrivateIpAddress <String>]
   [-PublicIpAddress <PSPublicIpAddress>]
   [-Subnet <PSSubnet>]
   -VirtualNetworkGateway <PSVirtualNetworkGateway>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
Add-AzureRmVirtualNetworkGatewayIpConfig
   -Name <String>
   [-PrivateIpAddress <String>]
   [-PublicIpAddressId <String>]
   [-SubnetId <String>]
   -VirtualNetworkGateway <PSVirtualNetworkGateway>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Add-AzureRmVirtualNetworkGatewayIpConfig cmdlet adds an IP configuration to a virtual network gateway.

Examples

1:

Required Parameters

-Name

Specifies the name of the gateway IP configuration to add.

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

Specifies a PSVirtualNetworkGateway object. This cmdlet modifies the PSVirtualNetworkGateway object that you specify. You can use the Get-AzureRmVirtualNetworkGateway cmdlet to retrieve a PSVirtualNetworkGateway object.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-PrivateIpAddress

Specifies the private IP address.

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

Specifies the public IP address.

Type:PSPublicIpAddress
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PublicIpAddressId

Specifies the ID of the public IP address.

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

Specifies a PSSubnet object.

Type:PSSubnet
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubnetId

Specifies the ID of the subnet.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False