Skip to content

Commit dff7dac

Browse files
authored
Update tutorial-url-redirect-powershell.md
Removed main
1 parent 9fc784e commit dff7dac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/application-gateway/tutorial-url-redirect-powershell.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ ms.custom: devx-track-azurepowershell
1313

1414
# Create an application gateway with URL path-based redirection using Azure PowerShell
1515

16-
main
16+
1717
You can use Azure PowerShell to configure [URL-based routing rules](./url-route-overview.md) when you create an [application gateway](./overview.md). In this tutorial, you create backend pools using [virtual machine scale sets](/azure/virtual-machine-scale-sets/overview). You then create URL routing rules that redirect web traffic to the appropriate backend pool based on the request URL path.
1818
You can use Azure PowerShell to configure advanced [URL-based routing rules](./url-route-overview.md) when you create an [application gateway](./overview.md).
1919

2020
This tutorial covers production-ready configurations including security best practices, performance optimization, and monitoring setup.
21-
main
21+
2222

2323
In this tutorial, you learn how to:
2424

@@ -68,14 +68,14 @@ Write-Output "Resource group '$resourceGroupName' created successfully in '$loca
6868

6969
## Create network resources
7070

71-
main
71+
7272
Create the subnet configurations for *myBackendSubnet* and *myAGSubnet* using [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig). 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 named *myAGPublicIPAddress* using [New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress). These resources provide network connectivity to the application gateway and its associated resources.
7373

7474
> [!IMPORTANT]
7575
> The application gateway subnet (*myAGSubnet*) can contain only application gateways. No other resources are allowed in this subnet.
7676
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).
7777

78-
main
78+
7979

8080
```azurepowershell-interactive
8181
# Create backend subnet configuration with appropriate CIDR for scale sets
@@ -469,11 +469,11 @@ Set-AzApplicationGateway -ApplicationGateway $appgw
469469

470470
In this example, you create three virtual machine scale sets that support the three backend pools that you created. The scale sets are named *myvmss1*, *myvmss2*, and *myvmss3*. Each scale set contains two virtual machine instances on which you install IIS. You assign the scale set to the backend pool when you configure the IP settings.
471471

472-
main
472+
473473
> [!IMPORTANT]
474474
> Replace `<username>` and `<password>` with your own values before running the script. Use a strong password that meets Azure's security requirements.
475475
**Security Note**: Replace `<username>` and `<password>` with secure credentials. Consider using Azure Key Vault for credential management in production scenarios.
476-
main
476+
477477

478478
```azurepowershell-interactive
479479
# Get network and Application Gateway references

0 commit comments

Comments
 (0)