Azure Course Labs

Lab Solution

You’ll get an error telling you the PIP does not have a DNS name

DNS names are required because Traffic Manager just uses round-robin DNS for load-balancing across PIPs.

Try browsing to your Traffic Manager URL. You’ll see a response from one VM but if you refresh you may get the same VM responding (there’s lots of caching in the HTTP stack).

If you have a Mac or Linux machine, you’ll have the dig tool available, which prints the DNS response for an address. Check your Traffic Manager address and you’ll see how the load balancing is done:

# e.g. for my profile:
dig labsvmimagees.trafficmanager.net

I see a response like this:

;; ANSWER SECTION:
labsvmimagees.trafficmanager.net. 60 IN CNAME   labspipn0.westeurope.cloudapp.azure.com.
labspipn0.westeurope.cloudapp.azure.com. 10 IN A 52.148.241.50

And if I repeat it, I see different responses to provide load balancing across the addresses.