Overview
In this project I deployed an Azure Application Gateway to share web traffic between two Linux virtual machines running Nginx. I created the gateway's own subnet and set up the frontend, backend pool, listener, backend settings and routing rule. After Azure validated the settings I deployed it and tested it from the browser.
What I set out to do
- Share HTTP traffic between two web servers at layer 7.
Layout
Internet
│
▼
Azure Application Gateway
│
┌───────────┴───────────┐
▼ ▼
Linux Virtual Machine 1 Linux Virtual Machine 2
(Nginx) (Nginx)This diagram comes from my project README.
What I did
- I created a dedicated subnet for the gateway.
- I set up the frontend public IP.
- I added both Linux VMs to the backend pool.
- I configured the HTTP listener, backend settings and routing rule.
- I validated and deployed the gateway.
Screenshots
They are in the same order as in my repository. Click one to see it full size.
I painted over my Azure subscription ID in red. Everything else is as I captured it.
1. Create Application Gateway SubnetShows the dedicated subnet created for the Azure Application Gateway. 2. Subnet CreatedShows the successfully created Application Gateway subnet. 3. Configure Basic SettingsShows the basic configuration of the Azure Application Gateway. 4. Configure Frontend Public IPShows the frontend public IP configuration. 5. Configure Backend PoolShows both Linux virtual machines added to the backend pool. 6. Configure RoutingShows the routing configuration. 7. Configure HTTP ListenerShows the HTTP listener configuration. 8. Configure Backend SettingsShows the backend HTTP settings associated with the routing rule. 9. Configure Routing RuleShows the completed routing rule connecting the listener and backend pool. 10. Validation PassedShows Azure successfully validating the deployment configuration before deployment. 11. Deployment SuccessShows the successful deployment of the Azure Application Gateway. 12. Backend Pool AssociatedShows the Application Gateway successfully routing traffic to the backend pool containing both Linux virtual machines.
How I tested it
- Azure validation passed before deployment.
- When I refreshed the browser the page switched between Backend Server 1 and Backend Server 2. My demo video shows this.
Video
I recorded a short demonstration on YouTube.
Repository
My full notes and the original screenshots are on GitHub: azure-basic-labs/08-azure-application-gateway