Edit

Share via


New-AzFrontDoorWafLogScrubbingRuleObject

Create an in-memory object for WebApplicationFirewallScrubbingRules.

Syntax

Default (Default)

New-AzFrontDoorWafLogScrubbingRuleObject
    -MatchVariable <String>
    -SelectorMatchOperator <String>
    [-Selector <String>]
    [-State <String>]
    [<CommonParameters>]

Description

Create an in-memory object for WebApplicationFirewallScrubbingRules.

Examples

Example 1: Create LogScrubbingRule object for LogScrubbingSetting

New-AzFrontDoorWafLogScrubbingRuleObject -MatchVariable "RequestHeaderNames" -SelectorMatchOperator "EqualsAny" -State "Enabled"
MatchVariable      Selector SelectorMatchOperator State
-------------      -------- --------------------- -----
RequestHeaderNames          EqualsAny             Enabled

This object is a parameter for LogscrubbingSetting

Parameters

-MatchVariable

The variable to be scrubbed from the logs.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Selector

When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to.

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

-SelectorMatchOperator

When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-State

Defines the state of a log scrubbing rule. 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.

Outputs

WebApplicationFirewallScrubbingRules