File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
articles/application-gateway Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,13 @@ az network application-gateway create \
65
65
--vnet-name myVNet \
66
66
--subnet myAGsubnet \
67
67
--capacity 2 \
68
- --sku Standard_Medium \
68
+ --sku Standard_v2 \
69
69
--http-settings-cookie-based-affinity Disabled \
70
70
--frontend-port 8080 \
71
71
--http-settings-port 80 \
72
72
--http-settings-protocol Http \
73
- --public-ip-address myAGPublicIPAddress
73
+ --public-ip-address myAGPublicIPAddress \
74
+ --priority 10
74
75
```
75
76
76
77
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 \
116
117
--resource-group myResourceGroupAG \
117
118
--http-listener redirectListener \
118
119
--rule-type Basic \
119
- --redirect-config myredirect
120
+ --redirect-config myredirect \
121
+ --priority 11
122
+
120
123
```
121
124
122
125
## Test the application gateway
Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ $listener02 = New-AzApplicationGatewayHttpListener -Name "HTTPListener" `
151
151
$setting = New-AzApplicationGatewayBackendHttpSettings -Name "BackendHttpSetting1" `
152
152
-Port 80 -Protocol Http -CookieBasedAffinity Disabled -PickHostNameFromBackendAddress
153
153
$rule01 = New-AzApplicationGatewayRequestRoutingRule -Name "Rule1" -RuleType basic `
154
- -BackendHttpSettings $setting -HttpListener $listener01 -BackendAddressPool $pool
154
+ -BackendHttpSettings $setting -HttpListener $listener01 -BackendAddressPool $pool -Priority 1
155
155
$rule02 = New-AzApplicationGatewayRequestRoutingRule -Name "Rule2" -RuleType basic `
156
- -BackendHttpSettings $setting -HttpListener $listener02 -BackendAddressPool $pool
156
+ -BackendHttpSettings $setting -HttpListener $listener02 -BackendAddressPool $pool -Priority 2
157
157
```
158
158
159
159
## Specify autoscale
You can’t perform that action at this time.
0 commit comments