The Azure Front Door service facilitates high availability on a global scale for web applications.
Within this hands-on lab, you will have the opportunity to create and configure the Classic Azure Front Door service with Azure Web Apps.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Configure Azure Front Door
Use the Azure Portal to perform the following tasks. Please log in with the credentials provided to you for this lab.
Please take note of the region in use for all of the resources that have been deployed for you, as we will need to use the same region in the following steps.
- Click on the + Create a resource option.
- In the search bar, enter "front door".
- From the search results, choose the Front Door and CDN profiles option.
- Click on Create.
- On the Compare offerings page, choose "Explore other offerings" and "Azure Font Door (classic)," then click Continue.
- Configure the Front Door service with the following settings:
- Fill out the Basics page:
- Subscription: Select the existing subscription.
- Resource group: Select the existing resource group.
- Click Next: Configuration >.
- Configuration – Frontends/domains
- Host name: Use a unique name (e.g., fdlab1234).
- Session Affinity: Disabled
- Web Application Firewall: Disabled
- Click Add.
- Configuration – Backend pools
- Name:
webapp-pool
- Add a backend:
- Type: App service
- Host name: Choose the first web app.
- Leave the remaining settings as default.
- Click Add.
- Add another backend:
- Type: App service
- Host name: Choose the second web app.
- Leave the remaining settings as default.
- Click Add.
- Click Add.
- Name:
- Configuration – Routing rules
- Name: default-route
- Accepted protocol: HTTP and HTTPS
- Frontends/domains: Select your frontend.
- Backened pool:
webapp-pool
- Leave all other settings as default.
- Click Add.
- Fill out the Basics page:
- Click on Review + create.
- Click Create once the validation is complete.
- Test the Azure Front Door
- Navigate to the Front Door service you just created.
- Click on Overview in the resource menu on the left-hand side.
- Click on Frontend host hyperlink within the working pane. You should see a standard Python web-app page.
- To test high availability, navigate to the App Services section in the Azure Portal.
- Stop the second Web App.
- Reload the front door host: it should continue to work.
- Stop the first Web App.
- Reload the front door host: it will now fail.