Azure Front Door

Swetha Mudunuri
5 min readJul 12, 2023

--

Azure Front Door

🎀Let’s explore the steps involved to implement the Azure Front door

🎀Creation of two web applications that are configured in two different regions.

🌈Sign in to the portal using https://portal.azure.com

🎀Lets us create the first instance of the Web application.

🌈Click on Create a resource.

Create a resource

🌈Search for Webapp.

Web App

🌈Click on Webapp. Enter the required information like Subscription, RG, Name, Publish, and Runtime Stack as shown in the below screenshot on the basis tab.

Basics tab of Webapp

🌈Provide the Windows Plan and Pricing Plan.

Provide the required information
Tags

🌈Provide the tags and leave the rest as defaults. Click on the Review + Create option

Successfully created Webapp 😎

🌈created the First web application 😎

Successful deployed First Webapp 🎉

🌈Go to the CNL-First-Webapp that was created in the North Europe region, navigate to Deployment tools, and Click on App Service Editor-Click on Open Editor

CNL-First Webapp

🌈Add the Default.html page and enter the HTML code.

Default.html
Default.html
Primary Webapp

🎀Now let’s create a second instance of the web app.

🌈Follow the steps except for the Resource group, Name, Region, and App Service plan.

🌈Below is the snippet of the second instance of the Web app that is deployed.

CNL-remote

🌈Go to the secondary Webapp CNL-remote and modify the default HTML page for the application.

App Service Editor

🌈Click on the domain name to check whether the webpage is coming up for both instances.

Domain name
Successfully deployed the second instance of Webapp 🎉 ✨
Congratulations

🎀Creation of Azure Front Door.

🌈Now let’s configure Azure Front Door so that traffic is routed to the web app servers with the lowest latency to improve the user experience.

🌈Go to the marketplace and search for front door service, Select the Front Door and CDN Profiles.

Market Place

🌈Click on Create to create the profile.

Front Door Create

🌈On the Compare offering page — select the Azure Front Door and create a custom create or you can select Explore other offerings to create the Azure Front Door (Classic) profile.

Azure Front Door Comparison offering

🌈On the Basics page of the profile, enter the required information like Subscription, Resource group, and location.

Front Door

🌈On the Endpoint page, Click on Add an endpoint.

Endpoint Page

🌈Add the Endpoint name — Click on Add — as shown below.

Add Endpoint

🌈Click on Add a route.

Add route

🌈Enter the name of the route and click on add a new origin group, it opens up a new page.

Add route

🌈Enter the name of the origin and click on Add an Origin. Provide the necessary details as shown below, and Click on Add.

Add an origin.

🌈Click again on Add an Origin and add the Secondary web app details.

Add an origin

🌈Once all the necessary information is entered, Click on Add, to return to the endpoint page.

Configuration of the Origin group

🌈Click on Review+create.

Review + Create

🌈Deployment takes some time please hold on.

Deployment is in Progress

🌈Successfully deployed Azure Front door.

🎀Testing the Azure Front Door.

Azure Front Door Deployment was successful

🌈Click on the overview of the CNL-Frontdoor, and click on the Endpoint hostname.

Successfully Deployed the Azure Front Door

🌈Wait for 5 minutes, before the page comes up.

Front Door

🌈Stop the Secondary web app.

Stop the Secondary Webapp

🌈After one minute, refresh the web browser to check whether it’s routed to the Primary web app.

Failover successful
Testing completed Successfully 😍

Clean-up: Delete the resource group that was created for Webapps and Azure Front Door.

Cleanup

🎀Conclusion: In summary, Azure Front Door pools two web application instances from different Azure regions. With the same-priority backends, it directs traffic to the closest operational site. Continuous monitoring ensures automatic failover to an alternative site if the nearest one becomes unavailable.

Thank you

--

--

Swetha Mudunuri
Swetha Mudunuri

Written by Swetha Mudunuri

Cloud and Cybersecurity Professional

No responses yet