Skip to content

Commit 6d9980e

Browse files
committing WAF CLI coomands for log scrubbing
1 parent f8b7956 commit 6d9980e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

articles/web-application-firewall/ag/waf-sensitive-data-protection-configure.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: vhorne
55
ms.author: victorh
66
ms.service: web-application-firewall
77
ms.topic: how-to
8-
ms.date: 06/13/2023
8+
ms.date: 08/15/2023
99
---
1010

1111
# How to mask sensitive data on Azure Web Application Firewall
@@ -16,7 +16,7 @@ The following table shows examples of log scrubbing rules that can be used to pr
1616

1717
| Match Variable | Operator | Selector | What gets scrubbed |
1818
| --- | --- | --- | --- |
19-
| Request Header Names | Equals | X-Forwarded-For | REQUEST_HEADERS:x-forwarded-for.","data":"******" |
19+
| Request Header Names | Equals | X-Forwarded-For | REQUEST_HEADERS: x-forwarded-for.","data":"******" |
2020
| Request Cookie Names | Equals | cookie1 | "Matched Data: ****** found within REQUEST_COOKIES:cookie1: ******" |
2121
| Request Arg Names | Equals | arg1 | "requestUri":"\/?arg1=******" |
2222
| Request Post Arg Names | Equals | Post1 | "data":"Matched Data: ****** found within ARGS:post1: ******" |
@@ -62,8 +62,19 @@ $logScrubbingRuleConfig = New-AzApplicationGatewayFirewallPolicyLogScrubbingConf
6262
```
6363
#### [CLI](#tab/cli)
6464

65-
The Azure CLI commands to enable and configure Sensitive Data Protection are coming soon.
66-
65+
Use the following Command Line Interface commands to [create and configure](articles\web-application-firewall\ag\waf-sensitive-data-protection.md) Log Scrubbing rules for Sensitive Data Protection:
66+
67+
```CLI
68+
az network application-gateway waf-policy policy-setting update
69+
-g <MyResourceGroup>
70+
--policy-name <MyPolicySetting>
71+
--log-scrubbing-state <Enabled/Disabled>
72+
--scrubbing-rules
73+
"[{state:<Enabled/Disabled>,
74+
match-variable:<MatchVariable>,
75+
selector-match-operator:<Operator>,
76+
selector:<Selector>}]"
77+
```
6778

6879

6980
---

0 commit comments

Comments
 (0)