Microsoft Docs

Azure Application Gateway

Azure Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications. It supports Layer 7 load balancing, which allows you to route traffic based on attributes like HTTP headers, URI paths, and more. It also provides features like SSL termination, cookie-based session affinity, and a Web Application Firewall (WAF) to protect your applications.

Key Features

Load Balancing

Distribute incoming traffic across multiple backend servers to ensure high availability and scalability.

SSL Termination

Offload SSL/TLS decryption from your web servers, simplifying management and improving performance.

URL-Based Routing

Route requests to different backend pools based on the request's URI path.

Cookie-Based Session Affinity

Ensure that requests from the same client are always directed to the same backend server.

Web Application Firewall (WAF)

Protect your web applications from common web vulnerabilities like SQL injection and cross-site scripting.

Autoscaling

Automatically scale your Application Gateway instance up or down based on traffic load.

Getting Started

To get started with Azure Application Gateway, you can create an instance through the Azure portal, Azure CLI, or Azure PowerShell. You'll need to define your frontend IP configuration, backend pools, HTTP settings, and listeners.

Use Cases

Example Configuration Snippet (Azure CLI)

Here's a simplified example of how you might configure a basic Application Gateway using the Azure CLI:


az network application-gateway create \
  --name MyGateway \
  --resource-group MyResourceGroup \
  --location westus2 \
  --sku Standard_v2 \
  --frontend-port 80 \
  --backend-pool-name myBackendPool \
  --backend-addresses 10.0.0.4 10.0.0.5 \
  --public-ip-address myPublicIP \
  --http-settings-cookie-based-affinity Enabled \
  --http-settings-port 80 \
  --http-settings-protocol Http
        

Learn More