0
0
Azurecloud~30 mins

Traffic Manager routing methods in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Azure Traffic Manager Routing Methods
📖 Scenario: You are managing a global web application hosted in multiple Azure regions. You want to control how user traffic is routed to these regions to improve performance and availability.
🎯 Goal: Build an Azure Traffic Manager profile with different routing methods to direct user traffic based on priority and geographic location.
📋 What You'll Learn
Create an Azure Traffic Manager profile with endpoints
Configure a priority routing method
Add a geographic routing method
Set endpoint priorities and geographic regions
💡 Why This Matters
🌍 Real World
Traffic Manager helps distribute user traffic across multiple Azure regions to improve application performance and availability.
💼 Career
Understanding Traffic Manager routing methods is essential for cloud engineers managing global applications and ensuring high availability.
Progress0 / 4 steps
1
Create the initial Traffic Manager profile configuration
Create a variable called traffic_manager_profile as a dictionary with keys name set to "MyTrafficManager", routingMethod set to "Priority", and endpoints as an empty list.
Azure
Need a hint?

Define a dictionary with the specified keys and values exactly as shown.

2
Add endpoints with priorities
Add two endpoints to traffic_manager_profile["endpoints"]. The first endpoint is a dictionary with name as "endpoint1", type as "azureEndpoints", target as "app1.azurewebsites.net", and priority as 1. The second endpoint has name as "endpoint2", type as "azureEndpoints", target as "app2.azurewebsites.net", and priority as 2.
Azure
Need a hint?

Append two dictionaries with the specified keys and values to the endpoints list.

3
Change routing method to Geographic and add geographic regions
Change traffic_manager_profile["routingMethod"] to "Geographic". Then add a new endpoint to traffic_manager_profile["endpoints"] with name as "endpoint3", type as "azureEndpoints", target as "app3.azurewebsites.net", and geographicLocation as a list containing "North America" and "Europe".
Azure
Need a hint?

Update the routingMethod value and append the new endpoint dictionary with geographicLocation list.

4
Finalize the Traffic Manager profile with monitoring configuration
Add a key monitorConfig to traffic_manager_profile with a dictionary value containing protocol set to "HTTP", port set to 80, and path set to "/healthcheck".
Azure
Need a hint?

Add the monitorConfig key with the specified dictionary as its value.