hands-on lab

Implementing DNS-based Traffic Routing with Azure Traffic Manager

Up to 1h
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Azure Traffic Manager is a DNS-based load balancer offering in Microsoft Azure that allows you to distribute traffic to your web application across the globe. Traffic manager offers a variety of routing methods and endpoint monitoring solutions to suit your business needs. Being a global service, the Traffic Manager is less prone to regional failure in a datacenter.

The high availability offering for endpoints and automatic failover service makes Traffic Manager a unique offering for businesses looking to scale their web infrastructure without handling the traffic routing from scratch. It allows you to distribute your application globally based on various routing methods that suit your application needs. Whether you are hosting Azure endpoints or an external resource in a Hybrid cloud, Traffic Manager lets you combine all those scenarios when planning for highly available infrastructure design.

In this hands-on lab, you will understand how Traffic Manager works and work with Traffic Manager Profiles and endpoints to route traffic.

Learning Objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Understand Traffic Manager offering and capabilities
  • Create Traffic Manager Profiles
  • Add Endpoints to Traffic Manager
  • Failover validation for Traffic Manager routing

Intended Audience

  • Candidates for the Azure Administrator Exam (AZ-104)
  • Cloud Architects
  • DevOps Engineers
  • Software Engineers


Familiarity with the following will be beneficial but is not required:

  • Azure Web Apps

The following content can be used to fulfill the prerequisite:


May 31st, 2023 - Updated screenshots and instructions, Nodejs version, and edited app service locations due to traffic manager endpoint conflicts

May 26th, 2023 - Resolved an issue that caused the lab to fail periodically

February 9th, 2023 - Resolved deployment issues

Environment before

Environment after

About the author

Learning paths

Parveen is an Azure advocate with previous experience in the professional consulting services industries. He specializes in infrastructure and DevOps with a wide range of knowledge in security and access management. He is also an Azure Certified - DevOps Engineer Expert, Security Engineer, Developer Associate, Administrator Associate, CompTIA Certified - Network+, Security+, and AWS Cloud Practitioner.
Parveen enjoys writing about cloud technologies and sharing the knowledge with the community to help students upskill in the cloud.

Covered topics

Lab steps

Logging in to the Microsoft Azure Portal
Creating Azure Traffic Manager Profile
Adding Azure Endpoints to Traffic Manager