Azure Application Gateway

Understanding Azure Application Gateway

Azure Application Gateway is a scalable, fully managed web traffic load balancer that enables you to manage traffic to your web applications. It provides Layer 7 load balancing capabilities, allowing for content-based routing, cookie-based session affinity, SSL termination, and more. Application Gateway can be used to direct traffic based on URL path, host name, and other route-based rules.

This service is ideal for applications requiring sophisticated routing rules, high availability, and enhanced security features. It acts as a reverse proxy, sitting in front of your backend servers and handling incoming requests.

Key Features

Common Usage Scenarios

Basic Configuration Steps

Configuring Azure Application Gateway typically involves the following steps:

  1. Create an Application Gateway: Define its size, SKU, and backend pool.
  2. Configure a Listener: Specify the frontend IP address, port, protocol (HTTP/HTTPS), and SSL certificate if applicable.
  3. Define Routing Rules: Map listeners to backend pools and specify path-based or host-based routing rules.
  4. Configure Backend Pools: List the IP addresses or FQDNs of your backend servers.
  5. Set up Health Probes: Define how the gateway should check the health of your backend servers.

Here's a simplified conceptual example of a routing rule:


Microsoft.Network/applicationGateways
myAppGateway

  
    Standard_v2
    Standard_v2
  
  ...
  ...
  
    
      myHttpListener
      
        ...
        80
        Http
      
    
  
  
    
      myRoutingRule
      
        ...myHttpListener...
        ...myBackendPool...
        ...myBackendHttpSettings...
      
    
  
  ...

            

Note: This is a simplified representation. Actual ARM templates or Azure CLI/PowerShell commands will be more detailed.

Monitoring Application Gateway

Effective monitoring is crucial for ensuring the health and performance of your applications. Azure Application Gateway integrates with Azure Monitor for comprehensive insights.

Pricing Information

Azure Application Gateway pricing is based on the SKU (e.g., Standard_v2, WAF_v2) you choose, the number of instances running, and data processed. Features like WAF and autoscaling also influence the cost. For the most accurate and up-to-date pricing, please refer to the official Azure Application Gateway pricing page.