How to create and use the application gateway in Azure?

How to create and use the application gateway in Azure?
Written by Pritam DharFebruary 26, 2022
9 min read
Pritam Dhar

Microsoft Azure Application Gateway (AGW) is a service used to manage web traffic in your web application. It's like a load balancer for web traffic.

Introduction to Azure Application Gateway :

Microsoft Azure Application Gateway (AGW) is a service used to manage web traffic on your web application. It resembles a heap balancer for web traffic. Application Gateway settles on directing choices given the URI way or host headers which are added as extra data connected in HTTP demands. Customarily load balancer courses web traffic in light of source IP address to objective location, and it works at transport layers like OSI layer 4 of TCP or UDP. Application entryway utilizes data from HTTP demands; it can course traffic in light of the URLs to its particular arrangement of servers like/pictures to picture pool server or recordings to video pool.

How Azure application gateway works :

Azure Application Gateway manages web traffic across one or more web applications because it acts as a load balancer enable to manage traffic across web applications. The application gateway works in two parts:

  • Accepting incoming requests.
  • Route the request to the backend pool.

1. Accepting incoming requests

  • Application Gateway uses the Domain Name System (DNS) server to resolve the domain name before the user submits a request. Azure controls DNS entries because all application gateways are in the domain.
  • The front-end IP address will be returned to the client by Azure DNS.
  • HTTP examines listener connection requests and the application gateway accepts incoming requests from listeners. Audiences are configured at the frontend IP address.
  • The header and body of each solicitation are checked contrary to the standard Web Application Firewall (WAF) to decide whether the solicitation is legitimate or the security dangerous. Substantial solicitations are directed to the backend pool, and invalid solicitations are hindered. WAF has 2 methods of avoidance mode and Detection mode; in anticipation mode, invalid solicitations are impeded, and in recognition, mode demands are assessed and logged and afterward sent to the backend.

2. Gateway Routes a Request

  • The application gateway analyzes the listener's routing request rules to determine which backend server will route the request.
  • The application rows the request from the listener to a specific backend pool based on the gateway URL path or redirects the request to an external site or other port.
  • The application gateway uses round-robin algorithms to send requests from listeners to healthy backend servers. Healthy Server is the server with Health Search; If there are multiple requests, balance the requests on the server.
  • Once the backend server is selected, a new TCP session will open based on the HTTP settings. These HTTP settings will provide protocols, ports, and other routing settings for setting up new sessions on the backend server.
  • Traffic between the gateway and the backend server may or may not be encrypted based on HTTP settings.

How to create and use the application gateway in Azure :

Before learning how to create Azure Application Gateway, users must have an Azure subscription so that they can log in to the Azure Portal with a valid certificate.

Step #1

Use a valid credential to Login into the Azure Portal :


Step #2

Click Create a resource and a new window will appear:


Step #3

From the Azure Marketplace, select Networking, and then select Application Gateway:


Step #4

Now from the Create Application Gateway page, select the Basics tab and enter the details.


Step #5

Enter the project description by selecting the subscription and resource group.


Enter the application gateway name, region, level, SKU size and create a new virtual network by clicking Create new, enter instance details and click OK.



Step #6

Click the Frontend tab and select the Frontend IP address type:


Step #7

To create a new public IP address click Add new and enter the name or IP address and select SKU and Assignment and click OK:


Step #8

Select the Next: Backend from the page:


Step #9

Select add a backend pool from the Backend tab:


Step #10

Enter a name in the backend pool and select Yes in the backend pool without targeting and click Add:


Step #11

Now to add new configuration details, select Next: Configuration>:


Step #12

In the Configuration tab, select Frontend, Routing Rules, and Backend Pool:


Step #13

Select a routing rule from the created application gateway and add the routing rule details to the Listener tab:


In the Backend Target tab


Step #14

Now select Next: Tag and then Next: Review + Create for Verification and enter the detailed review and then click Create to create a new application gateway.


Step #15

A new application gateway will be created as a map gateway. Here users can add new virtual machines, backend pools and users can clear resources.

Uses of Azure application gateway :

  • The Azure application gateway has autoscaling features and is based on web traffic; It can scale up or down based on traffic load. Autoscaling helps eliminate dependencies on installation size when arranging.
  • It has zone redundancy because the application gateway has multiple availability zones and it offers fault resilience.
  • It contains URL path-based routing and requests are routed to different servers or backend pools, based on the URL path of the request.
  • The VIP is attached to a gateway and has a static VIP to ensure that it does not change forever.
  • Application Gateway has support for web application firewalls, which provide centralized protection to block security threats.

Conclusion :

Azure Application Gateway is a service offered under Microsoft Azure that helps manage user-directed traffic to web applications. Also, it has autoscaling features that help with installation and is more secure as it integrates with Azure.

Application Gateway
Was this blog helpful?
You must be Logged in to comment
Code Block

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance