Skip to content

Commit 2c46d34

Browse files
Merge pull request #262605 from ChaitanyaNaykodi-MSFT/patch-190
(AzureCXP) Updated WAF command for adding Managed Rule
2 parents 7334232 + 361d273 commit 2c46d34

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/frontdoor/create-front-door-cli.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 'Quickstart: Create an Azure Front Door Standard/Premium - the Azure CLI'
33
description: Learn how to create an Azure Front Door Standard/Premium using Azure CLI. Use Azure Front Door to deliver content to your global user base and protect your web apps against vulnerabilities.
44
ms.topic: quickstart
5-
author: duau
5+
author: duongau
66
ms.author: duau
77
ms.service: frontdoor
88
ms.date: 6/30/2023
@@ -231,15 +231,16 @@ To learn more about WAF policy settings for Front Door, see [Policy settings for
231231

232232
Azure-managed rule sets provide an easy way to protect your application against common security threats.
233233

234-
Run [az network front-door waf-policy managed-rules add](/cli/azure/network/front-door/waf-policy/managed-rules#az-network-front-door-waf-policy-managed-rules-add) to add managed rules to your WAF Policy. This example adds Microsoft_DefaultRuleSet_1.2 and Microsoft_BotManagerRuleSet_1.0 to your policy.
234+
Run [az network front-door waf-policy managed-rules add](/cli/azure/network/front-door/waf-policy/managed-rules#az-network-front-door-waf-policy-managed-rules-add) to add managed rules to your WAF Policy. This example adds Microsoft_DefaultRuleSet_2.1 and Microsoft_BotManagerRuleSet_1.0 to your policy.
235235

236236

237237
```azurecli-interactive
238238
az network front-door waf-policy managed-rules add \
239239
--policy-name contosoWAF \
240240
--resource-group myRGFD \
241241
--type Microsoft_DefaultRuleSet \
242-
--version 1.2
242+
--action Block \
243+
--version 2.1
243244
```
244245

245246
```azurecli-interactive
@@ -330,4 +331,4 @@ az group delete --name myRGFD
330331

331332
Advance to the next article to learn how to add a custom domain to your Front Door.
332333
> [!div class="nextstepaction"]
333-
> [Add a custom domain](standard-premium/how-to-add-custom-domain.md)
334+
> [Add a custom domain](standard-premium/how-to-add-custom-domain.md)

0 commit comments

Comments
 (0)