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
# Create an application gateway with URL path-based redirection using Azure PowerShell
16
16
17
-
You can use Azure PowerShell to configure advanced [URL-based routing rules](./url-route-overview.md) when you create an [application gateway](./overview.md). This tutorial demonstrates implementing URL path-based redirection patterns using Application Gateway v2 Standard_v2 SKU, which provides enhanced performance, auto-scaling capabilities, and zone redundancy. You'll create backend pools using [virtual machine scale sets](/azure/virtual-machine-scale-sets/overview) and implement sophisticated URL routing rules with redirection logic that automatically routes web traffic to the appropriate backend pool based on URL path patterns.
17
+
You can use Azure PowerShell to configure advanced [URL-based routing rules](./url-route-overview.md) when you create an [application gateway](./overview.md).
18
18
19
19
This tutorial covers production-ready configurations including security best practices, performance optimization, and monitoring setup.
20
20
@@ -46,9 +46,6 @@ Before you begin this tutorial, ensure you have:
46
46
47
47
If you choose to install and use PowerShell locally, this tutorial requires the Azure PowerShell module version 5.4.1 or later. To find the version, run `Get-Module -ListAvailable Az`. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-azure-powershell). If you're running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
48
48
49
-
> [!IMPORTANT]
50
-
> This tutorial uses Application Gateway v2 (Standard_v2 SKU) which provides better performance, security features, and auto-scaling capabilities compared to v1. Ensure your subscription has sufficient quota for the resources that will be created.
51
-
52
49
## Create a resource group
53
50
54
51
A resource group is a logical container into which Azure resources are deployed and managed. Create an Azure resource group using [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup).
@@ -69,8 +66,6 @@ Write-Output "Resource group '$resourceGroupName' created successfully in '$loca
69
66
70
67
Create the subnet configurations for *myBackendSubnet* and *myAGSubnet* using [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig). The Application Gateway requires a dedicated subnet with minimum /24 CIDR for proper operation and future scaling. Create the virtual network named *myVNet* using [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork) with the subnet configurations. Finally, create the public IP address with Standard SKU and static allocation for improved security and performance using [New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress).
71
68
72
-
> [!NOTE]
73
-
> Application Gateway v2 requires a Standard SKU public IP address. Dynamic allocation is not supported with Standard_v2 SKU.
74
69
75
70
```azurepowershell-interactive
76
71
# Create backend subnet configuration with appropriate CIDR for scale sets
0 commit comments