Azure Application Gateway

I put an Azure Application Gateway in front of two Nginx web servers so that traffic is shared between them. I recorded a short video of it working.

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.

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