Skip to content

Commit 37c8d5e

Browse files
authored
Update tutorial-multiple-sites-cli.md
--priority is required option to run the command for add rule for application gateway Below errors are produced if rules are run without --priority flag ``` root@jumpbox:~# az network application-gateway rule create \ > --gateway-name myAppGateway \ > --name contosoRule \ > --resource-group myResourceGroupAG \ > --http-listener contosoListener \ > --rule-type Basic \ > --address-pool contosoPool (ApplicationGatewayRequestRoutingRulePriorityCannotBeEmpty) Priority for the request routing rule /subscriptions/4ff5187b-445f-4080-a09f-5565e458d856/resourceGroups/myResourceGroupAG/providers/Microsoft.Network/applicationGateways/myAppGateway/requestRoutingRules/contosoRule cannot be empty. All request routing rules should have a priority defined starting from api-version 2021-08-01 Code: ApplicationGatewayRequestRoutingRulePriorityCannotBeEmpty Message: Priority for the request routing rule /subscriptions/4ff5187b-445f-4080-a09f-5565e458d856/resourceGroups/myResourceGroupAG/providers/Microsoft.Network/applicationGateways/myAppGateway/requestRoutingRules/contosoRule cannot be empty. All request routing rules should have a priority defined starting from api-version 2021-08-01 root@jumpbox:~# root@jumpbox:~# az network application-gateway rule create \ > --gateway-name myAppGateway \ > --name fabrikamRule \ > --resource-group myResourceGroupAG \ > --http-listener fabrikamListener \ > --rule-type Basic \ > --address-pool fabrikamPool (ApplicationGatewayRequestRoutingRulePriorityCannotBeEmpty) Priority for the request routing rule /subscriptions/4ff5187b-445f-4080-a09f-5565e458d856/resourceGroups/myResourceGroupAG/providers/Microsoft.Network/applicationGateways/myAppGateway/requestRoutingRules/fabrikamRule cannot be empty. All request routing rules should have a priority defined starting from api-version 2021-08-01 Code: ApplicationGatewayRequestRoutingRulePriorityCannotBeEmpty Message: Priority for the request routing rule /subscriptions/4ff5187b-445f-4080-a09f-5565e458d856/resourceGroups/myResourceGroupAG/providers/Microsoft.Network/applicationGateways/myAppGateway/requestRoutingRules/fabrikamRule cannot be empty. All request routing rules should have a priority defined starting from api-version 2021-08-01 ``` Updated line 157 & 166 with --priority flag to make command successful on the run
1 parent 2345dd0 commit 37c8d5e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/application-gateway/tutorial-multiple-sites-cli.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,17 @@ az network application-gateway rule create \
153153
--resource-group myResourceGroupAG \
154154
--http-listener contosoListener \
155155
--rule-type Basic \
156-
--address-pool contosoPool
156+
--address-pool contosoPool \
157+
--priority 200
157158
158159
az network application-gateway rule create \
159160
--gateway-name myAppGateway \
160161
--name fabrikamRule \
161162
--resource-group myResourceGroupAG \
162163
--http-listener fabrikamListener \
163164
--rule-type Basic \
164-
--address-pool fabrikamPool
165+
--address-pool fabrikamPool \
166+
--priority 100
165167
166168
az network application-gateway rule delete \
167169
--gateway-name myAppGateway \

0 commit comments

Comments
 (0)