Azure architectureIntermediate33 min read

What Does Azure Traffic Manager Mean?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

Azure Traffic Manager helps you control how user traffic is routed to your applications hosted in different Azure regions or even on different cloud providers. Instead of sending all users to the same server, it uses DNS to direct each user to the best available endpoint based on rules you set. This improves performance and keeps your application available even if one region goes down.

Common Commands & Configuration

az network traffic-manager profile create --name MyProfile --resource-group MyRG --routing-method Performance --unique-dns-name myapp --ttl 30 --protocol HTTP --port 80 --path "/"

Creates a Traffic Manager profile with Performance routing method, custom TTL, and monitoring endpoint. Used for global latency-based traffic distribution.

Exam questions often test the routing-method parameter (e.g., Performance, Priority, Weighted, Geographic) and knowledge that unique-dns-name must be globally unique.

az network traffic-manager endpoint create --name MyEndpoint --profile-name MyProfile --resource-group MyRG --type azureEndpoints --target-resource-id /subscriptions/.../microsoft.web/sites/myapp --endpoint-status Enabled

Adds an Azure endpoint (e.g., App Service) to a Traffic Manager profile. Used to register a backend service.

Appears in exams to test understanding of endpoint types: azureEndpoints, externalEndpoints, or nestedEndpoints; also the --endpoint-status flag for enabling/disabling.

az network traffic-manager endpoint update --name MyEndpoint --profile-name MyProfile --resource-group MyRG --type azureEndpoints --weight 50

Updates the weight of an endpoint in a Weighted routing profile. Used for traffic distribution among endpoints.

Exams test that weight values (1-1000) determine traffic proportion; also that Priority routing uses priority numbers (1 for highest).

az network traffic-manager profile update --name MyProfile --resource-group MyRG --routing-method Geographic --ttl 60

Changes the routing method to Geographic and updates TTL. Used when routing based on user geographic location.

Exam questions highlight Geographic routing requires endpoint mappings to regions, and TTL affects DNS caching and failover speed.

az network traffic-manager profile check-dns --name myapp.trafficmanager.net

Checks the DNS resolution and health of a Traffic Manager profile. Used for troubleshooting DNS propagation.

Appears in exam scenarios where you verify endpoint availability via DNS; tests understanding of how Traffic Manager returns healthy endpoints.

az network traffic-manager endpoint list --profile-name MyProfile --resource-group MyRG --query "[].{Name:name, Status:endpointStatus, MonitorStatus:monitorStatus}"

Lists all endpoints with their status and monitor status. Used to diagnose endpoint health.

Exams test the monitorStatus field (e.g., 'Online', 'Degraded', 'Disabled') as an indicator of health probing results.

az network traffic-manager profile update --name MyProfile --resource-group MyRG --monitor-config --protocol HTTPS --port 443 --path "/health"

Configures HTTPS health monitoring to a custom path. Used for accurate health checks of web apps.

Exam questions emphasize that custom path monitoring is critical for app-specific health checks; also that protocol and port must match the backend.

Azure Traffic Manager appears directly in 8exam-style practice questions in Courseiva's question bank — one of the most-tested concepts on AZ-104. Practise them →

Must Know for Exams

Azure Traffic Manager is a frequent topic in the AZ-104 Microsoft Azure Administrator exam and the AZ-900 Azure Fundamentals exam. It also appears in the AWS Cloud Practitioner (aws-cloud-practitioner) and AWS Solutions Architect Associate (aws-saa) exams because candidates need to understand multi-region routing concepts, even though AWS uses Route 53 instead of Traffic Manager. Similarly, the Google Cloud Digital Leader (google-cloud-digital-leader) and Google Associate Cloud Engineer (google-ace) exams cover similar concepts with Google Cloud's global load balancing.

In the AZ-104 exam, Traffic Manager questions typically fall under the "Configure and manage virtual networking" domain (25-30% of the exam). Objectives include designing and implementing Azure traffic management solutions, configuring routing methods, configuring endpoints, and monitoring endpoint health. You may be asked to choose the appropriate routing method for a given scenario. For example, a question might describe a company that wants to route traffic to a primary region and automatically fail over to a secondary region if the primary fails. The correct answer is the Priority routing method.

Another common question type asks you to recommend a solution for reducing latency for global users. The answer is usually Traffic Manager with the Performance routing method, optionally combined with Azure Front Door for caching. You may also see questions about health probes, such as configuring the probe interval, timeout, and number of failures before an endpoint is marked as degraded.

In the AZ-900 exam, questions are more conceptual. You need to know that Traffic Manager is a DNS-based traffic load balancer and that it operates at the global level across regions. You should recognize that it differs from Azure Load Balancer (Layer 4, regional) and Azure Application Gateway (Layer 7, regional with SSL termination and web application firewall).

For AWS exams, the analogous service is Amazon Route 53 with routing policies. The concepts are similar: you configure record sets with routing policies such as simple, weighted, latency-based, geolocation, and failover. Knowing the Azure version helps because the underlying principles are the same.

In Google Cloud exams, the equivalent is Cloud Load Balancing with global HTTP(S) load balancing or TCP/UDP load balancing. Google's offering is different because it is a proxy-based load balancer rather than DNS-based, but the high availability and multi-region concepts stress the same learning objectives.

Question patterns include scenario-based questions where you must select the correct Traffic Manager configuration to meet requirements like cost, performance, or compliance. You might also see troubleshooting questions where an application is not failing over correctly, and you must identify that the health probe configuration is wrong or that the endpoints are misconfigured.

To succeed, you must memorize the five routing methods and their use cases. You must also understand that Traffic Manager does not provide session persistence, so if an application requires that a user always hits the same server, you need additional logic at the application layer or use a different service.

Simple Meaning

Imagine you run a popular food truck that parks in different neighborhoods on different days. Without any guidance, customers might drive to the wrong location and waste time. Now suppose you hire a smart announcer who stands in the town square and shouts directions to each customer before they start driving. This announcer knows where each truck is parked, which truck is closest to the customer's home, and which truck has the shortest line. The announcer tells each customer exactly where to go, and the customers follow those directions.

Azure Traffic Manager works like that announcer, except for web traffic. When a user types your website address into their browser, the browser first asks a DNS server to convert that name into an IP address. Traffic Manager intercepts that DNS request and returns the IP address of the best available server for that user. The user then connects directly to that server.

The key point is that Traffic Manager does not route traffic itself. It simply tells the user's browser which IP address to use. The actual data travels directly between the user and the server, so Traffic Manager does not become a bottleneck or a point of failure.

You can configure Traffic Manager to make its decision based on several different methods. The performance method sends the user to the server with the lowest network latency. The priority method always sends traffic to a primary server unless it fails, in which case traffic is redirected to a backup. The weighted method distributes traffic across servers according to percentages you set, which is useful for testing new versions. The geographic method routes users based on their physical location, which can help comply with data sovereignty regulations.

Traffic Manager also monitors the health of each server. If a server becomes unresponsive or returns error codes, Traffic Manager stops sending new users to that server until it recovers. This automatic failover keeps your application available even during outages.

In plain terms, Azure Traffic Manager is like a smart signpost at a crossroads. It does not move the traffic itself, but it points each car in the right direction based on where the car came from, which road is fastest, and which roads have accidents. This makes your application faster, more reliable, and easier to manage across multiple locations.

Full Technical Definition

Azure Traffic Manager is a DNS-based traffic load balancer that operates at the application layer (Layer 7) of the OSI model. Unlike hardware load balancers that sit between the client and server and actively proxy connections, Traffic Manager works solely by responding to DNS queries. When a client resolves a domain name, the client's DNS resolver queries the authoritative DNS server for that domain. Traffic Manager integrates with Azure DNS or can be used with custom DNS names, and it responds to each DNS query with one or more IP addresses chosen according to the configured routing method.

The core components of Azure Traffic Manager are profiles, endpoints, and routing methods. A Traffic Manager profile is the top-level object that contains the configuration for a specific domain or subdomain. Each profile has a unique DNS prefix, such as myapp.trafficmanager.net, and you can configure a CNAME record in your custom domain to point to this Traffic Manager domain.

Endpoints are the destination resources to which Traffic Manager can route traffic. Endpoints can be Azure cloud services, Azure App Services, Azure Virtual Machines (behind a load balancer), Azure Public IP addresses, or even external endpoints hosted outside Azure. Each endpoint has a priority, weight, and geographic region associated with it, depending on the routing method in use.

Traffic Manager uses two types of health checks: HTTP/HTTPS probes and TCP probes. By default, Traffic Manager probes each endpoint every 30 seconds from multiple Azure regions around the world. It looks for a successful HTTP 200 response within a specified timeout (default 10 seconds). If an endpoint fails to respond correctly for a configurable number of consecutive probes (default 2), Traffic Manager marks the endpoint as degraded and stops routing new traffic to it. Traffic Manager continues to probe degraded endpoints, and once they again pass the health check for the configured number of successful probes (default 2), they are brought back into rotation.

The routing methods available are as follows. The Priority routing method is used for failover scenarios. You assign a numeric priority to each endpoint, with lower numbers having higher priority. Traffic Manager always routes traffic to the endpoint with the highest priority (lowest number) that is healthy. If that endpoint becomes unhealthy, traffic shifts to the next highest priority endpoint.

The Weighted routing method allows you to distribute traffic across endpoints according to defined weights. For each DNS query, Traffic Manager randomly selects an endpoint based on the weights. This is useful for A/B testing, gradual rollouts, or balancing load across regions unevenly.

The Performance routing method is the most complex. Traffic Manager maintains a global table of latency measurements between all Azure regions and endpoints. When a DNS query arrives, Traffic Manager identifies the geographic region of the requesting DNS resolver (not the end user directly) and returns the endpoint with the lowest latency from that region. This does not guarantee the lowest latency for the end user because it uses the resolver's location as a proxy, but it is highly effective in practice.

The Geographic routing method routes traffic based on the geographic origin of the DNS request using the requester's IP address mapped to a country, region, or continent. You must define which endpoints correspond to which geographic regions. This method is often used for data residency compliance, where traffic from certain countries must be served by servers located within that country.

The Subnet routing method allows you to route traffic from specific IP address ranges to specific endpoints, which is useful for internal testing or for VPN users.

Traffic Manager supports both IPv4 and IPv6 endpoints and can respond with A records (IPv4), AAAA records (IPv6), or CNAME records depending on the endpoint type. It also supports multi-value responses for DNS queries, returning multiple IP addresses in a single response for simple load balancing without health checks.

From an exam perspective, it is critical to understand that Traffic Manager operates at the DNS level and does not inspect or modify traffic. It does not perform SSL termination, session persistence (sticky sessions), or application-layer routing. For those features, you would use Azure Application Gateway or Azure Front Door. Traffic Manager is primarily a global traffic routing and failover tool, not a web application firewall or a reverse proxy.

In real-world IT implementations, Traffic Manager is often used in combination with other Azure networking services. For example, you might place Traffic Manager in front of multiple Azure Application Gateways deployed in different regions, with each Application Gateway handling local traffic distribution to virtual machine scale sets. This provides both global failover and regional load balancing.

Real-Life Example

Think about a large international airport like London Heathrow or New York JFK. When you arrive at the airport with a flight ticket, you go to a check-in counter. The check-in agent looks at your destination and tells you which gate to go to. The agent does not physically take you to the gate. They just point you in the right direction. The journey from the check-in counter to the gate is your own responsibility.

Now imagine that the airport is operated by a single company that manages multiple terminals. Terminal 1 handles flights to Europe, Terminal 2 handles flights to Asia, and Terminal 3 handles domestic flights. The check-in agents at the main entrance know which terminals are open, which ones have delays, and which ones have the shortest security lines. They also know if a terminal is completely shut down due to an emergency. When you arrive, the agent sends you to the most appropriate terminal based on your destination, the current wait times, and the availability of gates.

Azure Traffic Manager works exactly like those check-in agents. Your web users are like passengers arriving at the airport. Their DNS queries are like asking which terminal to go to. Traffic Manager (the check-in agent) evaluates all the available endpoints (terminals) based on rules you define, performance, priority, weight, or geography. It then returns the IP address of the best terminal for that user. The user then connects directly to that server, just like walking to the gate on their own.

If one terminal catches fire (a server goes down), the check-in agents stop sending passengers there. Instead, they reroute passengers to the next best terminal. Once the fire is out (the server recovers), passengers are sent there again.

The key insight is that the check-in agent does not actually operate the planes. The agent only provides directions. Similarly, Traffic Manager does not handle the actual data traffic. It only provides DNS directions. This makes it fast, scalable, and resilient because it never becomes a bottleneck.

In a more IT-focused example, consider a global e-commerce company with data centers in the United States, Europe, and Asia. They use Traffic Manager with the Performance routing method. A user in Japan sends a DNS query. Traffic Manager sees that the query comes from a DNS resolver in Tokyo. It checks its latency table and finds that the European data center responds in 200 milliseconds, the US data center in 150 milliseconds, and the Asian data center in 30 milliseconds. Traffic Manager returns the IP of the Asian data center because that gives the user the fastest experience. The user then buys a product directly from the Asian server, and the transaction completes quickly.

Why This Term Matters

In modern cloud architectures, applications must be highly available and performant for users around the world. A single server in one data center cannot serve a global audience reliably. If that data center goes down, the entire application becomes unavailable. Traffic Manager solves this problem by enabling multi-region deployments with intelligent traffic routing and automatic failover.

For IT professionals, understanding Traffic Manager is essential for designing resilient architectures. When you build an application that must meet a Service Level Agreement (SLA) of 99.99% or higher, you cannot rely on a single region. You need at least two regions and a mechanism to route traffic away from a failed region. Traffic Manager provides that mechanism without adding complexity or cost beyond the endpoints themselves.

Traffic Manager also helps with performance optimization. By directing users to the nearest healthy endpoint, you reduce latency and improve user experience. This is especially important for applications that serve users across continents where network latency can exceed several hundred milliseconds.

Traffic Manager supports compliance requirements. Some industries or countries require that user data remain within specific geographic boundaries. The Geographic routing method allows you to ensure that users from a particular country are always served by endpoints located in that country, helping you meet data residency laws like GDPR or local banking regulations.

For Azure certifications, Traffic Manager appears in multiple exams, including AZ-104 (Microsoft Azure Administrator) and Azure Fundamentals. Candidates must understand the difference between Traffic Manager and other Azure load balancing services. They must also know the routing methods, health monitoring configuration, and how to combine Traffic Manager with other services for high availability architectures. Mastery of Traffic Manager is a clear indicator of readiness for real-world cloud administration tasks.

How It Appears in Exam Questions

Exam questions about Azure Traffic Manager typically fall into three categories: scenario-based design, configuration details, and troubleshooting. In scenario-based design questions, you are given a business requirement and asked to choose the appropriate routing method. For example: "A company has deployed a web application in two Azure regions, East US and West Europe. They want all traffic to go to East US under normal conditions, but automatically fail over to West Europe if East US becomes unavailable. Which routing method should they use?" The answer is Priority. The question might then ask what happens if both endpoints are healthy: all traffic goes to East US. If East US is unhealthy, all traffic goes to West Europe.

Configuration questions test your knowledge of Traffic Manager settings. For example: "You need to configure a Traffic Manager profile so that users from Australia are routed to an endpoint in Australia, users from Europe are routed to an endpoint in Europe, and users from other regions are routed to a default endpoint. Which routing method should you use?" The answer is Geographic. You must also understand that Geographic routing requires you to map endpoints to geographic regions and that you can define a default endpoint for unmatched requests.

Troubleshooting questions are the most challenging. For example, a company deploys Traffic Manager with Performance routing, but users in Europe experience high latency. The question asks why this is happening. The correct answer might be that the Traffic Manager profile is configured with the Performance routing method but only has endpoints in the US and Asia, so European users are routed to the closest endpoint, which is still far away. The fix is to add an endpoint in Europe. Another troubleshooting scenario: Traffic Manager stops routing traffic to all endpoints, and users get a DNS error. The cause could be that all endpoints have been marked as degraded because the health probe path is incorrect or the probe timeout is too short.

You may also see questions about combining Traffic Manager with other Azure services. For instance: "You want to distribute traffic across multiple versions of a web application for A/B testing. You want 10% of users to see the new version and 90% to see the current version. Which routing method should you use?" The answer is Weighted. You then need to configure the endpoints with weights of 1 and 9 (or 10 and 90, but the absolute numbers do not matter; only the ratio matters).

In AWS exams, you might see analogous questions about Route 53 routing policies. For example: "A company wants to route users to the nearest healthy endpoint based on latency. Which Route 53 routing policy should they use?" The answer is Latency routing policy, which is the AWS equivalent of Azure's Performance routing.

A common trick is to ask about session persistence. A question might describe a shopping cart application that requires users to return to the same server. The candidate might consider Traffic Manager, but the correct answer is that Traffic Manager does not support session persistence, so they should use Azure Application Gateway or an external solution like Redis Cache for session state.

Another trap is confusing Traffic Manager with Azure Front Door. Both can route traffic across regions, but Front Door is a Layer 7 reverse proxy with caching, SSL offload, and web application firewall. Traffic Manager is only DNS-based. Questions may test this distinction by asking which service to use when you need to offload SSL certificates or protect against DDoS attacks. The answer would likely be Front Door, not Traffic Manager.

Practise Azure Traffic Manager Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A medium-sized e-commerce company called ShopGlobal has an online store that sells products to customers in North America, Europe, and Asia. Their application is currently deployed in a single Azure region in Virginia, USA. Recently, they experienced a two-hour outage when a storm caused a power failure in the data center. This cost them an estimated $50,000 in lost sales. They also noticed that customers in Europe and Asia complain about slow page load times.

To solve these problems, the company decides to deploy the application in two additional Azure regions: West Europe (Netherlands) and Southeast Asia (Singapore). They want to ensure that if one region goes down, users are automatically redirected to another healthy region with minimal disruption. They also want users to be directed to the region that gives them the fastest experience.

A junior cloud engineer suggests moving all users manually during an outage, but the senior architect knows that is too slow. Instead, they configure an Azure Traffic Manager profile with the Performance routing method. They add three endpoints: one for the US East data center, one for the West Europe data center, and one for the Southeast Asia data center. They configure health probes to check the /health endpoint of each application every 30 seconds with a 10-second timeout. If two consecutive probes fail, the endpoint is marked as degraded.

Now, when a user in Japan visits ShopGlobal.com, their DNS request is resolved by a DNS server in Tokyo. Traffic Manager sees that the query originates from a resolver in the Tokyo region. It looks at its latency table and finds that the Singapore endpoint responds in 25 milliseconds, the Netherlands endpoint in 200 milliseconds, and the US endpoint in 150 milliseconds. Traffic Manager returns the IP address of the Singapore endpoint. The user connects to Singapore and enjoys fast page loads.

Later, the Singapore data center experiences a network outage. Traffic Manager detects this after two failed health probes, about 60 seconds later. It then marks the Singapore endpoint as degraded. The next DNS query from a Japanese user will be redirected to the next best endpoint, perhaps the US or Europe depending on latency. Within two minutes of the outage, users are routed to a healthy region.

This setup improves both availability and performance. The company achieves a higher SLA, fewer lost sales, and happier customers worldwide. The cost is minimal, just the additional resources in the new regions and the free Traffic Manager profile.

Common Mistakes

Thinking Traffic Manager proxies traffic like a traditional load balancer.

Traffic Manager does not sit in the data path. It only responds to DNS queries. The actual traffic flows directly between the client and the server.

Remember that Traffic Manager is DNS-based. It directs users to endpoints but does not handle their data.

Assuming Traffic Manager supports session persistence (sticky sessions).

Traffic Manager does not inspect application-layer data and does not maintain client state. It returns IP addresses that can change on each DNS query.

Use Azure Application Gateway or an external session store like Redis Cache for session persistence. Traffic Manager alone cannot keep a user on the same server.

Confusing the Performance routing method with geographic routing.

Performance routing routes based on the lowest network latency from the DNS resolver's region. Geographic routing routes based on the geographic origin of the DNS request regardless of latency.

Use Performance when the goal is speed. Use Geographic when you need to comply with data residency laws or serve localized content.

Setting health probes to check every 5 seconds with a 1-second timeout.

Too frequent probes can overload endpoints and cause false positives. The minimum interval is 10 seconds, and a very short timeout may mark healthy endpoints as unhealthy.

Set the probe interval to 30 seconds and timeout to 10 seconds. Adjust if needed, but stay within recommended limits to avoid unnecessary failovers.

Believing that Traffic Manager works with any DNS query from any client.

Traffic Manager relies on the DNS resolver's IP address to determine client location. If the client uses a public DNS resolver (like Google's 8.8.8.8), the resolver's location may be far from the client.

Be aware that Traffic Manager estimates user location based on the DNS resolver, not the end user. This is generally accurate but not perfect.

Forgetting that Traffic Manager requires a CNAME record for custom domains.

You cannot point a root domain (example.com) to a Traffic Manager domain because DNS standards prohibit CNAME at the apex. This is a common misconfiguration.

Use an ALIAS record if your DNS provider supports it, or use a subdomain like www.example.com that points to the Traffic Manager endpoint with a CNAME.

Exam Trap — Don't Get Fooled

{"trap":"You are asked to select a service that provides global load balancing with SSL termination and web application firewall. The options include Azure Traffic Manager, Azure Application Gateway, Azure Front Door, and Azure Load Balancer. Many learners choose Traffic Manager because it is global."

,"why_learners_choose_it":"Learners see \"global\" in the question and immediately think of Traffic Manager. They do not carefully read the additional requirements for SSL termination and web application firewall.","how_to_avoid_it":"Read every requirement in the question.

Traffic Manager does not terminate SSL or provide a web application firewall. Azure Front Door does both. Traffic Manager is purely DNS-based and cannot inspect or modify traffic. Always match the service features to the requirements."

Commonly Confused With

Azure Traffic ManagervsAzure Load Balancer

Azure Load Balancer operates at Layer 4 (TCP/UDP) and distributes traffic within a single region. It can handle millions of flows per second but does not route based on geographic location or endpoint priority across regions. Traffic Manager operates globally at the DNS level and can distribute traffic across regions.

Use Azure Load Balancer to distribute traffic across virtual machines in one Azure region. Use Traffic Manager to direct users to the best region based on latency or priority.

Azure Traffic ManagervsAzure Application Gateway

Application Gateway is a Layer 7 regional load balancer that provides HTTP/HTTPS routing, SSL termination, cookie-based session affinity, and a web application firewall. Traffic Manager cannot terminate SSL or inspect application-layer data. Application Gateway operates within a single region, while Traffic Manager can route across regions.

Use Application Gateway for SSL offloading and URL-based routing in one region. Use Traffic Manager to choose which region's Application Gateway receives traffic.

Azure Traffic ManagervsAzure Front Door

Azure Front Door is a global Layer 7 service that combines global load balancing, SSL termination, web application firewall, and content caching. Traffic Manager is DNS-only and does not cache content or terminate SSL. Front Door is often a better choice for modern web applications that need performance and security.

Use Front Door when you need to cache static content near users and protect against DDoS attacks. Use Traffic Manager when you only need simple DNS-based routing and failover without caching.

Azure Traffic ManagervsDNS CNAME Load Balancing

Basic DNS round-robin (multiple A records) does not consider endpoint health or performance. It simply returns a list of IP addresses in rotation. Traffic Manager provides health monitoring, multiple routing methods, and automatic failover, making it far more sophisticated.

Using multiple A records is like giving users a list of possible stores without telling them which ones are open. Traffic Manager only directs them to open stores with good performance.

Azure Traffic ManagervsAWS Route 53

AWS Route 53 is the AWS equivalent of Azure Traffic Manager. Both are DNS-based traffic routing services. Route 53 supports similar routing policies (simple, weighted, latency, geolocation, failover). The main difference is that Route 53 is an AWS service designed for AWS endpoints, while Traffic Manager is designed for Azure endpoints.

If you are studying Azure, learn Traffic Manager. If you are studying AWS, learn Route 53. The concepts are nearly identical.

Step-by-Step Breakdown

1

Create a Traffic Manager profile

In the Azure portal, you create a Traffic Manager profile. You give it a name, select the routing method (Priority, Weighted, Performance, Geographic, or Subnet), and choose the resource group and subscription. The profile gets a DNS name like myapp.trafficmanager.net.

2

Add endpoints to the profile

You add one or more endpoints to the profile. Each endpoint can be an Azure App Service, a cloud service, an Azure VM (behind a load balancer), an Azure Public IP address, or an external endpoint. You provide the target resource ID and a priority, weight, or geographic region depending on the routing method.

3

Configure health monitoring settings

You set the health probe protocol (HTTP, HTTPS, or TCP), the port, the relative path (for HTTP/HTTPS), the probe interval, timeout, and the number of consecutive failures before an endpoint is marked degraded. These settings determine how quickly Traffic Manager detects an outage.

4

Point your custom domain to Traffic Manager

In your DNS provider's control panel, you create a CNAME record for your application's subdomain (e.g., www.example.com) that points to the Traffic Manager domain (e.g., myapp.trafficmanager.net). If your DNS provider supports ALIAS records, you can point the root domain directly.

5

Test the Traffic Manager profile

You verify that users can reach your application via the Traffic Manager domain. You also simulate a failure by stopping an endpoint or blocking the health probe path to ensure failover works as expected.

6

Monitor endpoint health in Azure Monitor

Traffic Manager integrates with Azure Monitor. You can set up alerts for when endpoints become degraded or when traffic shifts between endpoints. This allows you to respond to failures quickly.

7

Update routing method or endpoints as needed

Over time, you may add new regions, remove old ones, or change routing strategies. You can modify the profile without downtime. Traffic Manager picks up the changes automatically within a few minutes (DNS propagation times may vary).

8

Validate multi-region failover in a controlled test

Before relying on Traffic Manager in production, you should run a controlled failover test. Shut down the primary endpoint and confirm that Traffic Manager redirects traffic to the backup. Then restore the primary and verify that traffic returns. This ensures your configuration is correct.

Practical Mini-Lesson

Azure Traffic Manager is a foundational tool for building resilient, high-performance multi-region applications. To use it effectively in a real-world environment, you must understand its limitations and how it interacts with other Azure services.

First, know that Traffic Manager is not a substitute for a regional load balancer. Each endpoint behind Traffic Manager should itself be highly available. For example, if you deploy virtual machines in a single region, you should place them behind an Azure Load Balancer or an Application Gateway so that if one VM fails, the local load balancer redirects traffic to another VM in the same region. Traffic Manager then routes users to that entire region.

Second, consider the propagation time. When you update a Traffic Manager profile (change endpoints, weights, priority, or health probe settings), the change takes effect almost immediately within Azure. However, DNS resolvers around the world cache the old responses for the TTL (Time-To-Live) you set in the profile. The default TTL is 300 seconds (5 minutes). If you need faster failover, you can reduce the TTL to as low as 30 seconds, but this increases DNS query volume and may incur higher costs from your DNS provider. In practice, a TTL of 60 seconds or 120 seconds is a good balance.

Third, health probes are critical. Set the probe path to a lightweight endpoint that returns a 200 OK quickly. Do not probe the main application page if it depends on a database, because a database failure could cause the page to return a 500 error, and Traffic Manager would mark the endpoint as degraded even though the application tier itself is healthy. Instead, create a dedicated /health endpoint that returns OK only when the core application code is running, but does not test downstream services. This prevents unnecessary failovers.

Fourth, use the Performance routing method carefully. It uses the DNS resolver's location as a proxy for the end user's location. If your users are mobile and use carrier-operated DNS resolvers, the resolver's location may be in a central hub far from the user. This can lead to suboptimal routing. For the most accurate geo-routing, consider using Azure Front Door, which uses anycast and client IP addresses.

Fifth, monitor regularly. Set up Azure Monitor alerts for when the number of healthy endpoints drops below a threshold. Also monitor the Traffic Manager Query Count metric to see how many DNS queries are being answered. A sudden drop could indicate that your custom domain's CNAME record was changed or that your DNS provider is having issues.

Finally, in a professional setting, combine Traffic Manager with Azure Front Door for optimal results. Use Front Door for global load balancing with caching, SSL termination, and WAF capabilities, and use Traffic Manager as a fallback for simpler failover scenarios. Or, use Traffic Manager in front of multiple Front Door instances for extra resilience.

Common errors include forgetting to add all endpoints to the health probe, using a probe path that returns a redirect (3xx) instead of 200, and not testing the failover scenario before going live. Always simulate a region failure in a staging environment before production.

Troubleshooting Clues

Endpoints show as Degraded

Symptom: Traffic Manager profile shows one or more endpoints with monitor status 'Degraded' and no traffic is routed to them.

The health probe (HTTP/HTTPS/TCP) to the endpoint's monitoring path failed. Common causes: network security group (NSG) blocking probe IPs, incorrect port/path, or backend service down.

Exam clue: Exam questions present a scenario where Degraded endpoints are caused by NSG rules not allowing Azure IP ranges; tests knowledge of required probe IPs for Traffic Manager.

DNS resolution returns unexpected endpoint

Symptom: Users are routed to a distant region even though Performance routing is configured, causing high latency.

Performance routing relies on geographic DNS queries; if the DNS resolver is far from the user or endpoint probe responses are incorrect, Traffic Manager may pick a suboptimal endpoint.

Exam clue: Exams test that Performance routing uses latency measurements based on the DNS resolver's location, not the end user's actual location, which can cause misrouting.

Traffic Manager profile not resolving at all

Symptom: Users get DNS errors or timeouts when trying to access myapp.trafficmanager.net.

Possible causes: profile deleted or disabled, no endpoints with Enabled status, or DNS TTL expired and not re-queried. Also, the unique-dns-name may conflict with another profile.

Exam clue: Exam questions focus on verifying endpoint status (all disabled) or profile state (Disabled) as root cause; also tests DNS TTL behavior.

Weighted routing not distributing traffic as expected

Symptom: Even with equal weights (e.g., both 100), one endpoint receives most traffic.

Weighted routing distributes traffic based on the weight ratio, but DNS caching and client persistence can skew distribution. Also, if one endpoint is Degraded, all traffic goes to the healthy one.

Exam clue: Exams test that weighted routing is a probabilistic mechanism and not guaranteed per request; also that endpoint health overrides weights.

Geographic routing to wrong region

Symptom: Users from Europe are routed to a US endpoint even though the European endpoint is healthy.

Geographic routing maps user IP ranges to endpoints via region mappings. If the mapping is missing or incorrect, Traffic Manager may fall back to a default endpoint or fail.

Exam clue: Exam questions highlight that Geographic routing requires explicit mappings and if no match, traffic is routed to the endpoint configured for 'All (World)' or fails.

Endpoint remains 'Checking Endpoint' status indefinitely

Symptom: After adding an endpoint, its monitor status stays 'Checking Endpoint' for more than a few minutes.

This occurs when the health probe cannot reach the endpoint due to network connectivity issues, such as firewall rules blocking probe IPs or incorrect DNS resolution for external endpoints.

Exam clue: Exams test that the 'Checking Endpoint' state indicates ongoing probing, and if it persists, it's due to connectivity issues, not a configuration error.

Traffic Manager returns endpoint with 'Disabled' status

Symptom: Users are occasionally routed to an endpoint that has endpointStatus set to Disabled.

This can happen if the endpoint is disabled but health probes still consider it after a delay; or if DNS cache on the client hasn't expired. Traffic Manager should not route to disabled endpoints, but cached DNS records may cause brief routing.

Exam clue: Exam questions test that disabled endpoints are not included in DNS responses, but clients with cached DNS records may still hit them until TTL expires.

Memory Tip

Traffic Manager is DNS Only. It Directs Not Delivers. Think of Priority for Failover, Weighted for Testing, Performance for Speed, Geographic for Compliance, and Subnet for Internal Testing.

Learn This Topic Fully

This glossary page explains what Azure Traffic Manager means. For a complete lesson with labs and practice, see the topic guide.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Related Glossary Terms

Quick Knowledge Check

1.Your company hosts a global web application on Azure VMs in multiple regions. You need to ensure users are routed to the lowest-latency region. Which Traffic Manager routing method should you use?

2.A Traffic Manager profile has two endpoints with weights 80 and 20. Despite this, both endpoints receive roughly equal traffic over time. What is the most likely reason?

3.You deploy a Traffic Manager profile with geographic routing. Users in Asia are routed to a North America endpoint instead of the Asian endpoint, which is healthy. What is the most likely cause?

4.An admin sees that a Traffic Manager endpoint has a monitor status of 'Degraded' even though the backend web app is running. What should the admin check first?

5.You create a Traffic Manager profile with Performance routing. Users in Europe report very high latency. Investigation shows they are routed to a US endpoint instead of a European one. The European endpoint is healthy. What is the most likely issue?

6.A Traffic Manager profile has all endpoints in 'Disabled' state. What will happen when a user queries the DNS name?

Frequently Asked Questions

Can Azure Traffic Manager route traffic based on the user's actual IP address instead of the DNS resolver's location?

Not directly. The Performance routing method uses the DNS resolver's geographic location as a proxy. For user IP-based routing, consider Azure Front Door or use the Geographic routing method with a mapping of IP address ranges to endpoints.

Does Traffic Manager support SSL termination?

No. Traffic Manager operates at the DNS level and does not inspect or decrypt traffic. SSL termination must be handled by the endpoints themselves or by a separate service like Azure Application Gateway or Azure Front Door.

What happens if all endpoints are unhealthy?

If all endpoints are marked as degraded, Traffic Manager still returns one of the endpoints in its DNS response. This allows users to try to connect even if the endpoint is unhealthy, rather than getting a DNS error. It assumes that partial service is better than no service.

Can I use Traffic Manager with an on-premises data center?

Yes. You can add external endpoints by specifying the public IP address or FQDN of your on-premises server. Traffic Manager will perform health checks over the internet. However, you must ensure external connectivity and consider that health probes may cross firewalls.

What is the difference between Traffic Manager and Azure Front Door?

Traffic Manager is DNS-based and only routes traffic. Front Door is a global Layer 7 proxy that provides routing, caching, SSL offloading, and a web application firewall. Front Door can also optimize traffic using anycast and split TCP, which Traffic Manager cannot.

How fast does Traffic Manager fail over?

Failover time depends on the health probe interval and the TTL of the DNS record. With a 30-second probe interval and a 30-second TTL, traffic can be redirected in under a minute. However, DNS propagation to all resolvers may take up to the full TTL time.

Can I use Traffic Manager for non-HTTP protocols like SMTP or gaming UDP traffic?

Yes. Traffic Manager supports TCP health probes and can route any protocol because it only returns an IP address. The client application connects directly to the chosen endpoint. It is not limited to HTTP.