Create an Application Gateway
This guide walks you through the steps to create an Application Gateway using the Azure portal. Application Gateway is a web traffic load balancer that enables you to manage traffic to your web applications.
Prerequisites
- An Azure subscription. If you don't have one, create a free account before you begin.
- A virtual network (VNet) for your Application Gateway to reside in.
- A subnet within the VNet that is dedicated to Application Gateway. This subnet can only contain Application Gateway resources and no other resources.
Steps to Create an Application Gateway
Step 1: Navigate to Application Gateway
Sign in to the Azure portal.
In the search bar at the top, type "Application gateway" and select it from the search results.
Click + Create to open the Create an application gateway page.
Step 2: Configure Basics
On the Basics tab:
- Subscription: Select your Azure subscription.
- Resource group: Select an existing resource group or create a new one.
- Name: Enter a unique name for your Application Gateway.
- Region: Select the region where you want to deploy the Application Gateway.
- Tier: Choose the tier that best suits your needs. The Standard_v2 and WAF_v2 tiers offer autoscaling and zone redundancy.
- Enable autoscale: Select this option for dynamic scaling of your Application Gateway.
- Instance count: (If autoscaling is not enabled) Specify the initial number of instances.
- Virtual network: Select the VNet you want to use.
- Subnet: Choose the dedicated subnet for the Application Gateway.
Click Next: Frontend IP.
Step 3: Configure Frontend IP
On the Frontend IP tab:
- Frontend IP address type: Choose between Public and Private.
- Public IP address: If you chose Public, select an existing public IP address or create a new one.
- Private IP address: If you chose Private, an IP address will be automatically assigned from the subnet.
Click Next: Backend targets.
Step 4: Configure Backend Targets
On the Backend targets tab, you'll define how traffic is routed to your backend resources.
Click Add backend pool.
- Name: Enter a name for your backend pool.
- Target type: Select the type of backend resource (e.g., Virtual machine scale set, App Service, or IP address/domain name).
- Target: Select your backend resources.
- Add HTTP settings: Click to configure HTTP settings (protocol, port, cookie-based affinity, etc.).
Click Add to create the backend pool and HTTP settings.
Click Next: Routing rules.
Step 5: Configure Routing Rules
On the Routing rules tab, you define how requests are routed to backend pools.
Click Add a routing rule.
- Name: Enter a name for the routing rule.
- Listeners: Configure the listener (frontend IP, protocol, port, hostname, path).
- Backend targets: Select the backend pool and HTTP settings configured in the previous step.
Click Add to create the routing rule.
Click Next: Tags.
Step 6: Add Tags
On the Tags tab, you can add tags to your Application Gateway for organization and billing purposes.
Click Next: Review + create.
Step 7: Review and Create
On the Review + create tab, review all the configuration details.
If everything is correct, click Create.
Next Steps
- Learn more about Application Gateway features.
- Explore how to configure advanced settings.
- Monitor your Application Gateway using Azure Monitor.