Azure Application Gateway listener configuration (2024)

  • Article

Note

We recommend that you use the Azure Az PowerShell module to interact with Azure. To get started, see Install Azure PowerShell. To learn how to migrate to the Az PowerShell module, see Migrate Azure PowerShell from AzureRM to Az.

A listener is a logical entity that checks for incoming connection requests by using the port, protocol, host, and IP address. When you configure the listener, you must enter values for these that match the corresponding values in the incoming request on the gateway.

When you create an application gateway by using the Azure portal, you also create a default listener by choosing the protocol and port for the listener. You can choose whether to enable HTTP2 support on the listener. After you create the application gateway, you can edit the settings of that default listener (appGatewayHttpListener) or create new listeners.

Listener type

When you create a new listener, you choose between basic and multi-site.

Order of processing listeners

For the v1 SKU, requests are matched according to the order of the rules and the type of listener. If a rule with basic listener comes first in the order, it's processed first and will accept any request for that port and IP combination. To avoid this, configure the rules with multi-site listeners first and push the rule with the basic listener to the last in the list.

For the v2 SKU, multi-site listeners are processed before basic listeners, unless rule priority is defined. If using rule priority, wildcard listeners should be defined a priority with a number greater than non-wildcard listeners, to ensure non-wildcard listeners execute prior to the wildcard listeners.

Frontend IP address

Choose the frontend IP address that you plan to associate with this listener. The listener will listen to incoming requests on this IP.

Note

Application Gateway frontend supports dual-stack IP addresses. You can create up to four frontend IP addresses: Two IPv4 addresses (public and private) and two IPv6 addresses (public and private).

Frontend port

Associate a frontend port. You can select an existing port or create a new one. Choose any value from the allowed range of ports. You can use not only well-known ports, such as 80 and 443, but any allowed custom port that's suitable. The same port can be used for public and private listeners.

Note

When using private and public listeners with the same port number, your application gateway changes the "destination" of the inbound flow to the frontend IPs of your gateway. Hence, depending on your Network Security Group's configuration, you may need an inbound rule with Destination IP addresses as your application gateway's public and private frontend IPs.

Inbound Rule:

  • Source: (as per your requirement)
  • Destination IP addresses: Public and Private frontend IPs of your application gateway.
  • Destination Port: (as per listener configuration)
  • Protocol: TCP

Outbound Rule: (no specific requirement)

Protocol

Choose HTTP or HTTPS:

  • If you choose HTTP, the traffic between the client and the application gateway is unencrypted.

  • Choose HTTPS if you want TLS termination or end-to-end TLS encryption. The traffic between the client and the application gateway is encrypted and the TLS connection will be terminated at the application gateway. If you want end-to-end TLS encryption to the backend target, you must choose HTTPS within backend HTTP setting as well. This ensures that traffic is encrypted when application gateway initiates a connection to the backend target.

To configure TLS termination, a TLS/SSL certificate must be added to the listener. This allows the Application Gateway to decrypt incoming traffic and encrypt response traffic to the client. The certificate provided to the Application Gateway must be in Personal Information Exchange (PFX) format, which contains both the private and public keys.

Note

When using a TLS certificate from Key Vault for a listener, you must ensure your Application Gateway always has access to that linked key vault resource and the certificate object within it. This enables seamless operations of TLS termination feature and maintains the overall health of your gateway resource. If an application gateway resource detects a misconfigured key vault, it automatically puts the associated HTTPS listener(s) in a disabled state. Learn more.

Supported certificates

See Overview of TLS termination and end to end TLS with Application Gateway

Additional protocol support

HTTP2 support

HTTP/2 protocol support is available to clients that connect to application gateway listeners only. Communication to backend server pools is always HTTP/1.1. By default, HTTP/2 support is disabled. The following Azure PowerShell code snippet shows how to enable this:

$gw = Get-AzApplicationGateway -Name test -ResourceGroupName hm$gw.EnableHttp2 = $trueSet-AzApplicationGateway -ApplicationGateway $gw

You can also enable HTTP2 support using the Azure portal by selecting Enabled under HTTP2 in Application gateway > Configuration.

WebSocket support

WebSocket support is enabled by default. There's no user-configurable setting to enable or disable it. You can use WebSockets with both HTTP and HTTPS listeners.

Custom error pages

You can define customized error pages for different response codes returned by the Application Gateway. The response codes for which you can configure error pages are 400, 403, 405, 408, 500, 502, 503, and 504. You can use global-level or listener-specific error page configuration to set them granularly for each listener. For more information, see Create Application Gateway custom error pages.

Note

An error originating from the backend server is passed along unmodified by the Application Gateway to the client.

TLS policy

You can centralize TLS/SSL certificate management and reduce encryption-decryption overhead for a backend server farm. Centralized TLS handling also lets you specify a central TLS policy that's suited to your security requirements. You can choose predefined or custom TLS policy.

You configure TLS policy to control TLS protocol versions. You can configure an application gateway to use a minimum protocol version for TLS handshakes from TLS1.0, TLS1.1, TLS1.2, and TLS1.3. By default, SSL 2.0 and 3.0 are disabled and aren't configurable. For more information, see Application Gateway TLS policy overview.

After you create a listener, you associate it with a request-routing rule. That rule determines how requests that are received on the listener are routed to the back end.

Next steps

  • Learn about request routing rules.
Azure Application Gateway listener configuration (2024)
Top Articles
Lock Files in Google Drive
Android: How to clear the app and Bluetooth "cache"
Will Byers X Male Reader
Washu Parking
What to Do For Dog Upset Stomach
Nwi Police Blotter
Calamity Hallowed Ore
New Day Usa Blonde Spokeswoman 2022
Comenity Credit Card Guide 2024: Things To Know And Alternatives
Valentina Gonzalez Leaked Videos And Images - EroThots
Culos Grandes Ricos
Craigslist Motorcycles Orange County Ca
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Houses and Apartments For Rent in Maastricht
Dumb Money, la recensione: Paul Dano e quel film biografico sul caso GameStop
Schedule An Oil Change At Walmart
Allybearloves
Veracross Login Bishop Lynch
Violent Night Showtimes Near Century 14 Vallejo
U Of Arizona Phonebook
E32 Ultipro Desktop Version
Craigslist Pennsylvania Poconos
Low Tide In Twilight Ch 52
Jackie Knust Wendel
2011 Hyundai Sonata 2 4 Serpentine Belt Diagram
Town South Swim Club
Lawrence Ks Police Scanner
The Bold and the Beautiful
Pixel Combat Unblocked
Productos para el Cuidado del Cabello Después de un Alisado: Tips y Consejos
Rund um die SIM-Karte | ALDI TALK
Hotel Denizen Mckinney
Audi Q3 | 2023 - 2024 | De Waal Autogroep
All Things Algebra Unit 3 Homework 2 Answer Key
4083519708
Louisville Volleyball Team Leaks
Hell's Kitchen Valley Center Photos Menu
Poe Flameblast
Top 25 E-Commerce Companies Using FedEx
Fetus Munchers 1 & 2
Urban Blight Crossword Clue
Weekly Math Review Q2 7 Answer Key
Promo Code Blackout Bingo 2023
Elven Steel Ore Sun Haven
Arch Aplin Iii Felony
Amateur Lesbian Spanking
De boeken van Val McDermid op volgorde
Ihop Deliver
Pronósticos Gulfstream Park Nicoletti
Samantha Lyne Wikipedia
OSF OnCall Urgent Care treats minor illnesses and injuries
Cheryl Mchenry Retirement
Latest Posts
Article information

Author: Allyn Kozey

Last Updated:

Views: 5982

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.