You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: 'Tutorial: Create an application gateway with URL path-based routing rules using Azure portal'
3
3
description: In this tutorial, you learn how to create URL path-based routing rules for an application gateway and virtual machine scale set using the Azure portal.
4
4
services: application-gateway
5
5
author: greg-lindsay
6
6
ms.service: application-gateway
7
7
ms.topic: tutorial
8
-
ms.date: 02/23/2021
8
+
ms.date: 07/08/2022
9
9
ms.author: greglin
10
+
ms.custom: template-tutorial #Required; leave this attribute/value as-is.
10
11
#Customer intent: As an IT administrator, I want to use the Azure portal to set up an application gateway so I can route my app traffic based on path-based routing rules.
11
12
---
12
13
@@ -23,14 +24,16 @@ In this article, you learn how to:
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
32
+
31
33
## Prerequisites
32
34
33
-
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
35
+
- An Azure subscription
36
+
34
37
35
38
## Create virtual machines
36
39
@@ -92,7 +95,7 @@ In this example, you create three virtual machines to be used as backend servers
92
95
93
96
## Create an application gateway
94
97
95
-
1. Select **Create a resource** on the left menu of the Azure portal. The **New** window appears.
98
+
1. Select **Create a resource** on the left menu of the Azure portal.
96
99
97
100
2. Select **Networking** and then select **Application Gateway** in the **Featured** list.
98
101
@@ -103,14 +106,14 @@ In this example, you create three virtual machines to be used as backend servers
103
106
- **Subscription**: Select your subscription.
104
107
- **Resource group**: Select **myResourceGroupAG** for the resource group.
105
108
- **Application gateway name**: Type *myAppGateway* for the name of the application gateway.
106
-
- **Region** - Select **(US) East US**.
107
-
108
-

109
+
- **Region** - Select **East US**.
109
110
110
111
2. Under **Configure virtual network**, select **myVNet** for the name of the virtual network.
111
112
3. Select **myAGSubnet** for the subnet.
112
113
3. Accept the default values for the other settings and then select **Next: Frontends**.
113
114
115
+
:::image type="content" source="./media/create-url-route-portal/application-gateway-create-basics.png" alt-text="Screenshot of Basics tab of Create application gateway page.":::
116
+
114
117
### Frontends tab
115
118
116
119
1. On the **Frontends** tab, verify **Frontend IP address type** is set to **Public**.
@@ -193,13 +196,13 @@ Review the settings on the **Review + create** tab, and then select **Create** t
193
196
194
197
The listener on port 8080 routes this request to the default backend pool.
195
198
196
-
3. Change the URL to *http://<ip-address>:8080/images/test.htm*, replacing <ip-address> with your IP address, and you should see something like the following example:
199
+
3. Change the URL to *http://<ip-address>:8080/images/test.htm*, replacing <ip-address> with the public IP address of **myAppGateway**, and you should see something like the following example:
197
200
198
201

199
202
200
203
The listener on port 8080 routes this request to the *Images* backend pool.
201
204
202
-
4. Change the URL to *http://<ip-address>:8080/video/test.htm*, replacing <ip-address> with your IP address, and you should see something like the following example:
205
+
4. Change the URL to *http://<ip-address>:8080/video/test.htm*, replacing <ip-address> with the public IP address of **myAppGateway**, and you should see something like the following example:
203
206
204
207

205
208
@@ -211,5 +214,11 @@ When no longer needed, delete the resource group and all related resources. To d
211
214
212
215
## Next steps
213
216
217
+
In this tutorial, you created an application gateway with a path-based routing rule.
218
+
219
+
To learn more about path-based routing in Application Gateways, see [URL path-based routing overview](url-route-overview.md)
220
+
221
+
To learn how to create and configure an Application Gateway to redirect web traffic using the Azure CLI, advance to the next tutorial.
222
+
214
223
> [!div class="nextstepaction"]
215
-
> [Enable end to end TLS on Azure Application Gateway](./ssl-overview.md)
224
+
> [Redirect web traffic](tutorial-url-redirect-cli.md)
0 commit comments