New-AzFrontDoorWafLogScrubbingSettingObject
Create an in-memory object for PolicySettingsLogScrubbing.
Syntax
Default (Default)
New-AzFrontDoorWafLogScrubbingSettingObject
[-ScrubbingRule <IWebApplicationFirewallScrubbingRules[]>]
[-State <String>]
[<CommonParameters>]
Description
Create an in-memory object for PolicySettingsLogScrubbing.
Examples
Example 1: Create LogScrubbingSetting object for Waf policy object
$LogScrubbingRule = New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled"
New-AzFrontDoorWafLogScrubbingSettingObject -State Enabled -ScrubbingRule @($LogScrubbingRule)
Need to create a LogScrubbingRule object before using.
Parameters
-ScrubbingRule
List of log scrubbing rules applied to the Web Application Firewall logs.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-State
State of the log scrubbing config. Default value is Enabled.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.