|
| 1 | +--- |
| 2 | +title: Use Azure Application Gateway with Azure Traffic Manager |
| 3 | +description: This article explains how to use Azure Application Gateway with Azure Traffic Manager. |
| 4 | +services: traffic-manager |
| 5 | +author: greg-lindsay |
| 6 | +ms.service: traffic-manager |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 06/20/2024 |
| 9 | +ms.author: greglin |
| 10 | +ms.custom: template-how-to |
| 11 | +--- |
| 12 | + |
| 13 | +# Use Application Gateway with Azure Traffic Manager |
| 14 | + |
| 15 | +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. |
| 16 | + |
| 17 | +## Scenarios for using Azure Application Gateway with Azure Traffic Manager |
| 18 | + |
| 19 | +* 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. |
| 20 | +* 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. |
| 21 | +* 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. |
| 22 | +* 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. |
| 23 | + |
| 24 | +## Process overview: How to use Application Gateway with Azure Traffic Manager |
| 25 | + |
| 26 | +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). |
| 27 | +2. Create an Azure Application Gateway: Next, create an Azure Application Gateway. Configure it to use the desired backend pool and routing rules. |
| 28 | +3. Add the Azure Application Gateway endpoint to the Azure Traffic Manager profile: Once your Application Gateway is set up, add it as an endpoint to your Traffic Manager profile. |
| 29 | +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 load balanced. |
| 30 | + |
| 31 | +## Prerequisites |
| 32 | + |
| 33 | +* If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 34 | + |
| 35 | +## Create a resource group |
| 36 | + |
| 37 | +Create a resource group for the Traffic Manager profile. |
| 38 | + |
| 39 | +1. Sign in to the [Azure portal](https://portal.azure.com). |
| 40 | +2. On the left pane of the Azure portal, select **Resource groups**. |
| 41 | +3. In **Resource groups**, on the top of the page, select **Add**. |
| 42 | +4. In **Resource group name**, type a name *myResourceGroupTM1*. For **Resource group location**, select **East US**, and then select **OK**. |
| 43 | + |
| 44 | +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. |
| 45 | + |
| 46 | +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. |
| 47 | + |
| 48 | +## Next steps |
| 49 | + |
| 50 | +- Learn about [weighted traffic routing method](traffic-manager-configure-weighted-routing-method.md). |
| 51 | +- Learn about [priority routing method](traffic-manager-configure-priority-routing-method.md). |
| 52 | +- Learn about [geographic routing method](traffic-manager-configure-geographic-routing-method.md). |
| 53 | +- Learn how to [test Traffic Manager settings](traffic-manager-testing-settings.md). |
0 commit comments