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
Apps Like Mistplay For iPhone and Android (September 2024) - MKS
Instant Saver | Help and support
Walgreens Boots Alliance, Inc. (WBA) Stock Price, News, Quote & History - Yahoo Finance
Sound Of Freedom Showtimes Near Governor's Crossing Stadium 14
Manhattan Prep Lsat Forum
Lighthouse Diner Taylorsville Menu
Ati Capstone Orientation Video Quiz
Gw2 Legendary Amulet
Publix 147 Coral Way
Planets Visible Tonight Virginia
Best Pawn Shops Near Me
Programmieren (kinder)leicht gemacht – mit Scratch! - fobizz
What is the difference between a T-bill and a T note?
Binghamton Ny Cars Craigslist
Used Drum Kits Ebay
Sony E 18-200mm F3.5-6.3 OSS LE Review
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
8664751911
Milspec Mojo Bio
Trivago Sf
Transactions (zipForm Edition) | Lone Wolf | Real Estate Forms Software
Www Craigslist Madison Wi
Thick Ebony Trans
Sec Baseball Tournament Score
Encyclopaedia Metallum - WikiMili, The Best Wikipedia Reader
Drying Cloths At A Hammam Crossword Clue
What Sells at Flea Markets: 20 Profitable Items
Nikki Catsouras: The Tragic Story Behind The Face And Body Images
What are the 7 Types of Communication with Examples
Brenda Song Wikifeet
60 Second Burger Run Unblocked
Wasmo Link Telegram
Vitals, jeden Tag besser | Vitals Nahrungsergänzungsmittel
Prima Healthcare Columbiana Ohio
Craigslist Car For Sale By Owner
Craigslist Georgia Homes For Sale By Owner
Whitehall Preparatory And Fitness Academy Calendar
Zasilacz Dell G3 15 3579
craigslist | michigan
Stewartville Star Obituaries
Ladyva Is She Married
Santa Clara County prepares for possible ‘tripledemic,’ with mask mandates for health care settings next month
Login
Brown launches digital hub to expand community, career exploration for students, alumni
Human Resources / Payroll Information
Actress Zazie Crossword Clue
Stephen Dilbeck, The First Hicks Baby: 5 Fast Facts You Need to Know
The 5 Types of Intimacy Every Healthy Relationship Needs | All Points North
Sml Wikia
Game Akin To Bingo Nyt
How to Get a Check Stub From Money Network
Costco Gas Price Fort Lauderdale
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.