Add-AzureRmVirtualNetworkGatewayIpConfig

Adds an IP configuration to a virtual network gateway.

Syntax

Add-AzureRmVirtualNetworkGatewayIpConfig
   -VirtualNetworkGateway <PSVirtualNetworkGateway>
   -Name <String>
   [-PrivateIpAddress <String>]
   [-SubnetId <String>]
   [-PublicIpAddressId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Add-AzureRmVirtualNetworkGatewayIpConfig
   -VirtualNetworkGateway <PSVirtualNetworkGateway>
   -Name <String>
   [-PrivateIpAddress <String>]
   [-Subnet <PSSubnet>]
   [-PublicIpAddress <PSPublicIpAddress>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<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:Microsoft.Azure.Commands.Network.Models.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:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
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:Microsoft.Azure.Commands.Network.Models.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:Microsoft.Azure.Commands.Network.Models.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:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSVirtualNetworkGateway

Parameter 'VirtualNetworkGateway' accepts value of type 'PSVirtualNetworkGateway' from the pipeline

Outputs

Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGateway