Edit

Share via


New-AzFrontDoorWafLogScrubbingRuleObject

Create LogScrubbingRule object for LogScrubbingSetting

Syntax

Default (Default)

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

Description

Create LogScrubbingRule object for LogScrubbingSetting

Examples

Example 1

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

This object is a parameter for LogscrubbingSetting

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

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

-MatchVariable

Gets or sets 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

Gets or sets 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

Gets or sets 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

Gets or sets 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:True
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.

Inputs

None

Outputs

PSFrontDoorWafLogScrubbingRule