23 C
Dubai
Monday, December 23, 2024

Azure Front Door for Virtual Machine’s hosting a Website.

  • Front Door handles incoming requests and routes traffic based on custom domains and load balancing rules.
  • Setup implements Azure Front Door to distribute traffic between two virtual machines hosting a website—one on Azure and the other on AWS.
  • Health probes ensure high availability and monitor the health of the VMs.
  • Caching is used to optimize performance and reduce response times for frequently accessed content.
  • Security features like Web Application Firewall (WAF) and IP restrictions are implemented to protect against threats and unauthorized access.
  • Monitoring is enabled through Application Insights, providing valuable insights into application performance and usage.
  • Geographic-based routing is configured to improve the user experience by directing traffic to the closest available server location.
  • The setup provides a resilient and highly available infrastructure for hosting the website across multiple cloud providers.

Let create a virtual machine in Azure and then install Web server (IIS) to host a website.

Allow http and https port in the virtual machine to host the website.

Now open the Virtual Machine and in Windows Server Manager install Web Server IIS.

Check weather the server is installed in the VM by pasting the IP’s in a new tab.

Now inside the intelpub > wwwroot > folder of the virtual machine place your website page.

.

Then in the Server Manager click on Internet Information Service(IIS) Manager.

Click on Add website.

Give a name to your website and add the physical path of the file and click OK.

Then check weather the Azure Virtual Machine is hosting the website.

Next step create another Virtual machine to host the website in a different platform( Here I have created a VM in AWS and hosted the website).

Check weather the Virtual Machine created in AWS is hosting the website.

Now lets create a Azure Front Door to Load balance the Virtual Machine’s to host websites.

Fill the required details to create a Azure Front Door and add the primary virtual machine hosting the website.

.

Now in Azure Front Door click on Front Door Manager and click on default route.

In default route setting un-check the checkbox – Redirect all traffic to use HTTPS.

Click on default origin groups and add the both the Virtual Machine IP’s in it and give priority level as 1 for both.

.

.

Now once Azure Front Door is created for the two virtual machine, test it by shutting down one VM that is hosting the first website.

Once its shutdown the second VM in AWS should host the second website.

Use the Azure Front Door URL to view the website.

Website is hosted by the second VM using Azure Front Door successfully.

Santhosh M
Santhosh M
As a seasoned DevOps Engineer at Virtual Petals, I bring a wealth of expertise in Microsoft Cloud, DevOps, and the Microsoft 365 Stack. With a track record of delivering successful projects across the globe.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?