How To Setup Traffic Manager On Microsoft Azure

In this article we will learn about how to setup Azure Traffic Manager with Web App. Traffic Manager supports Web App & Cloud Service to manage  the traffic running on different datacenters across the world.

Microsoft Azure Traffic Manager allows you to control the distribution of user traffic to your specified endpoints, which can include Azure cloud services, websites, and other endpoints. Traffic Manager works by applying an intelligent policy engine to Domain Name System (DNS) queries for the domain names of your Internet resources.

Azure Traffic Manager will help
  • Geo-route incoming traffic to your app for better performance and availability.
  • Improve app availability with automatic failover.
  • Increase your app’s responsiveness.
  • Enable smooth cloud migration.
  • Distribute your app traffic equally or with weighted values.
  • Seamlessly combine on-premises and cloud systems.
  • Reduce application downtime.
  • Improve app performance and content delivery.
  • Microsoft Azure Subscription (MSDN subscribers or sign up for one month free trial)
You will learn
  • How to create Web App
  • How to create App Service Plan
  • Configuration of Traffic Manager
  • Load Balancing Methods available for Traffic Manager.
We will create 3 web apps & host on 3 difference datacenter or region. With the help of traffic manager we will associate all 3 web app. User will type web app address in browser at that time in backend traffic manager automatically will check all the possibility & run the web app according to methods.

Step 1: Navigate to Azure Management Portal & Sign in with Azure Subscription credentials.

Step 2: Click on +New -> COMPUTE -> WEB APP -> QUICK CREATE
Enter URL like webappname-region for understanding purpose only. Ex.wa-eastus

First Web App in East US is created successfully

Step 3: Now Download the Publish Profile of this website upload one index page on Azure. Here we will upload one image & one html page.
1st Web App – East Us – index.html

For uploading html or any file on Azure different options available like any FTP Client(FileZilla) or File Explorer also will work here.

After uploading image & html web app will display like as below:

Step 4:
Now again create second web app with new app service plan & new region or location.

2nd Web App - Japan West - index.html

Step 5:
Same as second please create 3rd Web App in North Europe region or location.

3rd Web App – North Europe – index.html

Step 6: Click on first web app change select SCALE tab. Change the App Service Plan Tier from FREE TO STANDARD & save the settings.

Same steps perform for all 2 remaining web app.

Note: Only Standard web app are eligible for Traffic Manager.

Step 7:
Scroll down the Azure feature & select TRAFFIC MANAGER. Create a new Traffic Manager profile.

+ New -> NETWORK SERVICES -> TRAFFIC MANAGER -> QUICK CREATE -> EnterDNS prefix of traffic manager & choose LOAD BALANCING METHODS. Currently 3 load balancing methods available: Performance, Round Robin / Priority, Failover.

Available Traffic Manager Profiles

Performance – Use this method when your endpoints are deployed in different geographic locations and want to use the one with the lowest latency. When this method is used, ATM will send users to the region where he or she will get the best performance. This prevents situations where, for example, a user who is in the Central US region is directed to a site running in West Europe.

Round Robin /Weighed – Use this method when you want to distribute traffic equally across a set of endpoints. This method will evenly distribute traffic across the endpoints configured in your ATM profile using a round robin load balancing methodology. You can use this method, for example, to “ramp up” traffic to a particular endpoint without allowing it to receive all of your traffic immediately. (In the future, ATM will include enhanced functionality to make this kind of scenario even easier to configure.)

Failover – Use this method when a primary endpoint is selected to serve all the traffic but backups are required in case the primary or the backup endpoint go offline. The endpoints can be in the same data center or in different data centers. This method will redirect traffic to a secondary region if there is a problem in the primary region. For example, you may have a site in a “backup” region that doesn’t handle any traffic unless your primary site is offline for some reason.

Traffic Manager current status will be inactive because we cannot setup any Endpoint.

Step 8: Open traffic manager then choose ENDPOINTS tab & click on ADD ENDPOINTS.

Change Service Type to Web App because we are working with Web App. If you have created Cloud Service, then select Cloud Service as a service type.

All Standard tier web apps listed here. Select Service endpoints.

Wait for few minutes to configure all endpoints or refresh the page after some time.

Step 9:
Now open traffic manager url in browser.


We selected Performance load balancing methods so it will check all the options & then one of the web app with region name will open.

Another way for testing Traffic manager how it will work. Open
  • Enter trafficmanager address
  • change to CNAME
  • Click on Search button

Congratulations you have successfully configured Traffic Manager with Web App on Azure!
Read more articles on Azure: