Use Azure App Gateway with Azure Traffic Manager

Azure Traffic Manager and Azure Application Gateway can be used together to provide global load balancing and failover capabilities for your web applications. Azure Traffic Manager uses DNS-based routing to distribute incoming traffic across multiple regions, while Azure Application Gateway provides application-level routing and load balancing within a region.

Scenarios for using Azure App Gateway with Azure Traffic Manager

  • Improve application performance: By using Azure Traffic Manager to route traffic to the closest Azure Application Gateway, you can reduce latency and improve application performance for your users.
  • Increase application availability: By using Azure Traffic Manager to distribute traffic across multiple Azure Application Gateways, you can ensure that your application remains available even if one or more gateways become unavailable.
  • Scale your application: By using Azure Application Gateway to load balance traffic within a region, you can scale your application horizontally to handle increased traffic.
  • Secure your application: By using Azure Application Gateway to terminate SSL/TLS connections and protect against web attacks, you can secure your application from external threats.

Process overview: How to use Azure App Gateway with Azure Traffic Manager

  1. Create an Azure Traffic Manager profile: Start by creating an Azure Traffic Manager profile. Configure it to use the desired traffic routing method (priority, weighted, performance, or geographic).


    A screenshot of creating a traffic manager profile.

  2. Create an Azure Application Gateway: Next, create an Azure Application Gateway. Configure it to use the desired backend pool and routing rules.

    A screenshot of creating an application gateway.

  3. Copy the Azure Application Gateway frontend public IP address and then use this IP address to add an endpoint to your Azure Traffic Manager profile.

    A screenshot of the application gateway frontend configuration.

    A screenshot of adding an endpoint to the traffic manager profile.

  4. Test Your Setup: Finally, test the configuration by accessing the Azure Traffic Manager DNS name from a web browser. This will help ensure that traffic is being correctly routed and is load balanced. In the following example, the application gateway backend target is a web server.

    A screenshot of the DNS name for the traffic manager profile.

    A screenshot of testing the traffic manager connection.

By using Azure Traffic Manager with Azure Application Gateway, you can achieve high availability and scalability for your web applications across multiple regions. This combination of services can help you to improve application performance, increase application availability, scale your application, and secure your application.

Remember to monitor the health of your endpoints and adjust your Traffic Manager and Application Gateway configurations as needed to ensure high availability, optimal geographic distribution, and effective load balancing.

Next steps