Skip to content

Commit 8e2127b

Browse files
authored
Merge pull request #124718 from belimitless/main
Updated tutorial-autoscale-ps.md and redirect-external-site-cli.md
2 parents 1f6a542 + c483467 commit 8e2127b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

articles/application-gateway/redirect-external-site-cli.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,13 @@ az network application-gateway create \
6565
--vnet-name myVNet \
6666
--subnet myAGsubnet \
6767
--capacity 2 \
68-
--sku Standard_Medium \
68+
--sku Standard_v2 \
6969
--http-settings-cookie-based-affinity Disabled \
7070
--frontend-port 8080 \
7171
--http-settings-port 80 \
7272
--http-settings-protocol Http \
73-
--public-ip-address myAGPublicIPAddress
73+
--public-ip-address myAGPublicIPAddress \
74+
--priority 10
7475
```
7576

7677
It may take several minutes for the application gateway to be created. After the application gateway is created, you can see these new features of it:
@@ -116,7 +117,9 @@ az network application-gateway rule create \
116117
--resource-group myResourceGroupAG \
117118
--http-listener redirectListener \
118119
--rule-type Basic \
119-
--redirect-config myredirect
120+
--redirect-config myredirect \
121+
--priority 11
122+
120123
```
121124

122125
## Test the application gateway

articles/application-gateway/tutorial-autoscale-ps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ $listener02 = New-AzApplicationGatewayHttpListener -Name "HTTPListener" `
151151
$setting = New-AzApplicationGatewayBackendHttpSettings -Name "BackendHttpSetting1" `
152152
-Port 80 -Protocol Http -CookieBasedAffinity Disabled -PickHostNameFromBackendAddress
153153
$rule01 = New-AzApplicationGatewayRequestRoutingRule -Name "Rule1" -RuleType basic `
154-
-BackendHttpSettings $setting -HttpListener $listener01 -BackendAddressPool $pool
154+
-BackendHttpSettings $setting -HttpListener $listener01 -BackendAddressPool $pool -Priority 1
155155
$rule02 = New-AzApplicationGatewayRequestRoutingRule -Name "Rule2" -RuleType basic `
156-
-BackendHttpSettings $setting -HttpListener $listener02 -BackendAddressPool $pool
156+
-BackendHttpSettings $setting -HttpListener $listener02 -BackendAddressPool $pool -Priority 2
157157
```
158158

159159
## Specify autoscale

0 commit comments

Comments
 (0)