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

Modifies an HTTP listener for an application gateway.

Syntax

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

Description

The Set-AzureRmApplicationGatewayHttpListener cmdlet modifies an HTTP listener for an Azure application gateway.

Examples

Example 1: Set an HTTP listener

PS C:\>$AppGw = Get-AzureRmApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
PS C:\> $AppGw = Set-AzureRmApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol Http -FrontendIpConfiguration $FIP01 -FrontendPort 80

The first command gets the application gateway named ApplicationGateway01 that belongs to the resource group named ResourceGroup01 and stores it in the $AppGw variable.

The second command sets the HTTP listener for the gateway to use the front-end configuration stored in $FIP01 with the HTTP protocol on port 80.

Required Parameters

-ApplicationGateway

Specifies the application gateway with which this cmdlet associates the HTTP listener.

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

Specifies the name of the HTTP listener.

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

Specifies the protocol that the HTTP listener uses. The acceptable values for this parameter are:- Http

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

Optional Parameters

-FrontendIPConfiguration

Specifies the front-end IP address of the application gateway.

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

Specifies the ID of the front-end IP address of the application gateway.

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

Specifies the application gateway front-end port.

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 sends the HTTP listener to.

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

Specifies whether the cmdlet requires a server name indication. The acceptable values for this parameter are: true or false.

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

Specifies the SSL certificate of the HTTP listener.

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

Specifies the Secure Socket Layer (SSL) certificate ID of the HTTP listener.

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