Add-​Azure​Rm​Application​Gateway​IP​Configuration

Adds an IP configuration to an application gateway.

Syntax

Add-AzureRmApplicationGatewayIPConfiguration
   -ApplicationGateway <PSApplicationGateway>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   [-Subnet <PSSubnet>]
   [<CommonParameters>]
Add-AzureRmApplicationGatewayIPConfiguration
   -ApplicationGateway <PSApplicationGateway>
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -Name <String>
   [-SubnetId <String>]
   [<CommonParameters>]

Description

The Add-AzureRmApplicationGatewayIPConfiguration cmdlet adds an IP configuration to an application gateway. IP configurations contain the subnet in which the application gateway is deployed.

Examples

Example 1: Add an virtual network configuration to an application gateway

PS C:\>$Vnet = Get-AzureRmVirtualNetwork -Name "Vnet01" -ResourceGroupName "ResourceGroup01"
PS C:\> $Subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name "Subnet01" -VirtualNetwork $Vnet 
PS C:\> $AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Add-AzureRmApplicationGatewayIPConfiguration -ApplicationGateway $AppGw -Name "Appgwsubnet01" -Subnet $Subnet

The first command creates a virtual network. The second command creates a subnet using the previously created virtual network. The third command gets the application gateway and stores it in the $AppGw variable. The fouth command adds the IP configuration to the application gateway stored in $AppGw.

Required Parameters

-ApplicationGateway

Specifies the application gateway to which this cmdlet adds an IP configuration.

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

Specifies the name of the IP configuration to add.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
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
-Subnet

Specifies a subnet. This is the subnet in which the application gateway is deployed.

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

Specifies a subnet ID. This is the subnet in which the application gateway is deployed.

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

Inputs

System.String

Outputs

Microsoft.Azure.Commands.Network.Models.PSApplicationGateway