Bewerken

Delen via


New-AzFrontDoorWafManagedRuleExclusionObject

Create managed rule exclusion object for WAF managed rule sets, groups, or rules.

Syntax

New-AzFrontDoorWafManagedRuleExclusionObject
   -Variable <String>
   -Operator <String>
   [-Selector <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Create managed rule exclusion object for WAF managed rule sets, groups, or rules.

Examples

Example 1

New-AzFrontDoorWafManagedRuleExclusionObject -Variable QueryStringArgNames -Operator Equals -Selector "ParameterName"

MatchVariable       SelectorMatchOperator Selector
-------------       --------------------- --------
QueryStringArgNames Equals                ParameterName

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Operator

Operator to use when matching the selector, EqualsAny means no selector (all match variables of the specified type)

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Selector

Selector pattern to match using the operator (if the operator is not EqualsAny)

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Variable

Match variable. Possible values are RequestHeaderNames, RequestCookieNames, QueryStringArgNames, RequestBodyPostArgNames. For example, QueryStringArgNames is an exclusion of GET parameters matching the selector with the given operator.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSManagedRuleExclusion