I've created an Azure Traffic Manager profile which uses failover as the load balancing method. The primary endpoint is an on-premises website test.company.com
. The other endpoint is an Azure Website App which has a custom domain name xxx.mysite.com
. When I added the endpoint to Traffic Manager it points to mysite.azurewebsites.net
.
I've created a CNAME record at the ISP to point xxx.mysite.com
to mycompany.trafficmanager.net
.
When I stop the primary website to simulate a failover to the second website I get Error 404 - Web App Not Found
. If I go directly to mycompany.trafficmanager.net
it works as expected and displays the xxx.mysite.com
website.
What am I missing in the configuration so that when I failover it displays the xxx.mysite.com
website?