Azure – Networking – Part 33 – Azure Front Door 2 – Priority Routing

Hello Friends,
Hope you all are doing good. In our last article we have continued with Azure Front Door and see how to configure Azure Front Door through portal. Today in this article we will continue with Azure Front Door and will see how priority based routing works for Azure Front Door.
Tool Installation Articles :
- Configure Azure Command Line Interface ( Azure CLI) On Windows
- Configure PowerShell For Microsoft Azure Az Module On Windows
Previous Azure Series :
- Learn Basics Of Azure Networking In 100 Hours
- Learn Basics Of Microsoft Azure Storage services
- Learn Basic Of Azure Active Directory And Azure Identity And Access Management
- Azure DevOps – Learn at one place
- Learn Basics Of Lift-And-Shift Migration To Azure
If you have missed our previous articles on Azure Networking, please check it in following links.
Part 1 – Basics of Azure Networking
- *
- *
- *
Part 23 – Azure Load Balancer -Configure Basic Load Balancer – 1
Part 24 – Azure Load Balancer – Configure Basic Load Balancer – 2
Part 25 – Azure Load Balancer – Configure Basic Load Balancer -3
Part 26 – Azure Load Balancer – Outbound Connectivity
Part 27 – Azure Load Balancer – Outbound Rule – Lab Exercise
Part 28 – Azure Virtual Network NAT (Network Address Translation)
Part 29 – Azure Virtual Network NAT Gateway
Part 30 – Configure Azure Virtual Network NAT Gateway In Azure Portal
Part 32 – Azure Front Door 1 – Create And Configure Azure Front Door
Next Article : Part 34 – Azure Front Door 3 – Configure Web Application Firewall (WAF) policy
Lab Exercise
In our previous article, practically we have seen, how Azure Front Door works. In that lab we have configured 3 VM in different region.

when we configured the back end servers, we have set priority 1 for two US region server and set priority 2 for the last server in West Europe region.

So that ADF will check the health of both US region servers first because their priority set to 1 and then if it found both US servers are healthy it will check the latency of both server and then it forward the traffic to the server which has low latency rate. In case it found both the server is down or their health report is down then it will forward the traffics to the secondary server, which priority set to 2 if it’s health report is good.
Test Case
In this test case, we will check how priority routing is working. As per our configuration out of 3 VMs, We have set both US region server’s priority to 1 and set 2 for the server in West region as per the configuration it first forward the traffic to Servers under US region. Now we will intentionally stop both servers under US region and wait for some time so that the health probe will collect the health report of both US region , which we have deallocated. Then ADF will forward the traffic to server in Europe region which priority set as 2.
Let’s first stop both server as showing in the following figures.


Now only server under West Europe is running and both servers under US region are stopped. Let’s wait for 5 minute and send request to https://manasafd.azurefd.net/home.html to check which server is responding now.

We can see in the above figure as we expected, the response came from West Europe server.
With the above information, I am concluding this article. I hope this is informative to you. Please let me know if I missed anything important or if my understanding is not up to the mark.
Next Article : Part 34 – Azure Front Door 3 – Configure Web Application Firewall (WAF) policy
Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more.
If you have any suggestion / feedback / doubt, you are most welcome. Stay tuned on Knowledge-Junction, will come up with more such articles.
Thanks for reading 🙂
3 Responses
[…] you all are doing good. In our last article we have continued with Azure Front Door and saw how priority based routing works in Azure Front Door. Today in this article we will continue with Azure Front Door and will see how to configure WAF […]
[…] you all are doing good. In our last article we have continued with Azure Front Door and saw how priority based routing works in Azure Front Door. Today in this article we will continue with Azure Front Door and will see how to configure Custom […]
[…] Chapter 33 – Azure Front Door 2 – Priority Routing […]