< Back

New-AzureRmApplicationGatewayIPConfiguration

Tue Jan 29, 2019 9:55 pm

NAME New-AzureRmApplicationGatewayIPConfiguration



SYNOPSIS

Creates an IP configuration for an application gateway.





SYNTAX

New-AzureRmApplicationGatewayIPConfiguration [-DefaultProfile <IAzureContextContainer>] -Name <String> [-Subnet <PSSubnet>] [<CommonParameters>]



New-AzureRmApplicationGatewayIPConfiguration [-DefaultProfile <IAzureContextContainer>] -Name <String> [-SubnetId <String>] [<CommonParameters>]





DESCRIPTION

The New-AzureRmApplicationGatewayIPConfiguration cmdlet creates an IP configuration for an application gateway. The IP configuration contains the

subnet in which application gateway is deployed.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the IP configuration to create.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Subnet <PSSubnet>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SubnetId <String>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayIPConfiguration







NOTES









Example 1: Create an IP configuration for an application gateway.



PS C:\\>$VNet = Get-AzureRmvirtualNetwork -Name "VNet01" -ResourceGroupName "ResourceGroup01"

PS C:\\> $Subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name "Subnet01" -VirtualNetwork $VNet

PS C:\\ $GatewayIpConfig = New-AzureRmApplicationGatewayIPConfiguration -Name "AppGwSubnet01" -Subnet $Subnet



The first command gets a virtual network named VNet01 that belongs to the resource group named ResourceGroup01.



The second command gets the subnet configuration for the subnet that the virtual network in the previous command belongs to, and stores it in the

$Subnet variable.



The third command creates the IP configuration using $Subnet.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... figuration

Add-AzureRmApplicationGatewayIPConfiguration

Get-AzureRmApplicationGatewayIPConfiguration

Remove-AzureRmApplicationGatewayIPConfiguration

Set-AzureRmApplicationGatewayIPConfiguration