Add-​Azure​Rm​Application​Gateway​Http​Listener

Adds an HTTP listener to an application gateway.

Syntax

Add-AzureRmApplicationGatewayHttpListener
   -ApplicationGateway <PSApplicationGateway>
   [-FrontendIPConfiguration <PSApplicationGatewayFrontendIPConfiguration>]
   [-FrontendPort <PSApplicationGatewayFrontendPort>]
   [-HostName <String>]
   -Name <String>
   -Protocol <String>
   [-RequireServerNameIndication <String>]
   [-SslCertificate <PSApplicationGatewaySslCertificate>]
   [<CommonParameters>]
Add-AzureRmApplicationGatewayHttpListener
   -ApplicationGateway <PSApplicationGateway>
   [-FrontendIPConfigurationId <String>]
   [-FrontendPortId <String>]
   [-HostName <String>]
   -Name <String>
   -Protocol <String>
   [-RequireServerNameIndication <String>]
   [-SslCertificateId <String>]
   [<CommonParameters>]

Description

The Add-AzureRmApplicationGatewayHttpListener cmdlet adds a HTTP listener to an application gateway.

Examples

Example 1: Add a HTTP listener

PS C:\>$AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $Appgw = Add-AzureRmApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "listener01" -Protocol "Http" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01

The first command gets the application gateway and stores it in the $AppGw variable.The second command adds the HTTP listener to the application gateway.

Example 2: Add a HTTPS listener with SSL

PS C:\>$AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Add-AzureRmApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01

The first command gets the application gateway and stores it in the $AppGw variable. The second command adds the listener, which uses the HTTPS protocol, to the application gateway.

Required Parameters

-ApplicationGateway

Specifies the application gateway to which this cmdlet adds an HTTP listener.

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

Specifies the name of the front-end port that this command adds.

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

Specifies the protocol of the HTTP listener. Both HTTP and HTTPS are supported.

Type:String
Parameter Sets:Http, Https
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-FrontendIPConfiguration

Specifies the application gateway front-end IP resource object.

Type:PSApplicationGatewayFrontendIPConfiguration
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FrontendIPConfigurationId

Specifies the application gateway front-end IP ID.

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

Specifies the application gateway front-end port object.

Type:PSApplicationGatewayFrontendPort
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FrontendPortId

Specifies the application gateway front-end port ID.

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

Specifies the host name that this cmdlet adds a HTTP listener to.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RequireServerNameIndication
Type:String
Parameter Sets:true, false
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SslCertificate

Specifies the SSL certificate of the HTTP listener. Must be specified if HTTPS is chosen as listener protocol.

Type:PSApplicationGatewaySslCertificate
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SslCertificateId

Specifies the SSL certificate ID of the HTTP listener. Must be specified if HTTPS is chosen as listener protocol.

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