Introduction
An Azure Traffic Manager is a traffic load balancer that distributes traffic optimally to services under different global Azure regions while providing high responsiveness.
A Traffic Manager uses a DNS to direct client requests to the most appropriate service endpoint based on the chosen
traffic-routing method.
Prerequisites:
- You need to have an active Azure subscription. If you not have you can sign-up for a free account.
- An existing Web App hosted in Azure. For creating a Web App you can follow this blog .
- You must create the same web Apps in three different locations, for example, the US, Canada, and India.
- Deploy the same content in all these Web Apps.
Task 1: Create a traffic manager profile
- Navigate to the Azure Portal.
- Go to the existing Resource group.
- Here is the resource group, ‘testingforblog’.
- Click on Add. Move to the market place and choose the traffic manager profile.
- Click on Create.
- Once you click it you will see a panel that contains the following things:
- Fill in the following information.
- Select Create.
- Pin the deployed resource to the Dashboard. So, our 1st task is completed.
Task 2: Add Traffic Manager endpoints
• In the Traffic Manager profile, in the Settings section, select Endpoints, and then select Add.
- Once you click it you will see a Panel that contains the following things :
- You need to fill in the following information:
a) Type: Select Azure Endpoint.
b) Name: Enter any name.
c) Target resource type: Select App Service.
d) Target resource: Select Choose an app service > Central US.
e) Priority: Select 1. All traffic goes to this endpoint when it's healthy.
You will see this:
We have completed both of our tasks.