Skip to content

Commit 3902618

Browse files
committed
Add Azure CLI instructions and zone pivot
1 parent 7b08943 commit 3902618

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

articles/web-application-firewall/afds/waf-front-door-exclusion-configure.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to configure a WAF exclusion list for an existing Front D
44
services: web-application-firewall
55
author: johndowns
66
ms.service: web-application-firewall
7-
ms.date: 09/08/2022
7+
ms.date: 09/13/2022
88
ms.author: jodowns
99
ms.topic: conceptual
1010
zone_pivot_groups: web-application-firewall-configuration
@@ -130,6 +130,30 @@ Update-AzFrontDoorWafPolicy `
130130

131131
::: zone-end
132132

133+
::: zone pivot="cli"
134+
135+
## Create an exclusion
136+
137+
Use the [`az network front-door waf-policy managed-rules exclusion add`](/cli/azure/network/front-door/waf-policy/managed-rules/exclusion) command to update your WAF policy to add a new exclusion.
138+
139+
The exclusion identifies request headers that start with the word `user`. The match condition is case insensitive, so headers that start with `User` are also covered by the exclusion.
140+
141+
Ensure that you use the correct resource group name and WAF policy name for your own environment.
142+
143+
```azurecli
144+
az network front-door waf-policy managed-rules exclusion add \
145+
--resource-group FrontDoorWafPolicy \
146+
--policy-name WafPolicy \
147+
--type Microsoft_DefaultRuleSet \
148+
--rule-group-id SQLI \
149+
--rule-id 942230 \
150+
--match-variable RequestHeaderNames \
151+
--operator StartsWith \
152+
--value user
153+
```
154+
155+
::: zone-end
156+
133157
::: zone pivot="bicep"
134158

135159
## Example Bicep file

articles/zone-pivot-groups.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,5 +1829,7 @@ groups:
18291829
title: Azure portal
18301830
- id: powershell
18311831
title: PowerShell
1832+
- id: cli
1833+
title: Azure CLI
18321834
- id: bicep
18331835
title: Bicep

0 commit comments

Comments
 (0)