Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-AzFrontDoorWafMatchConditionObject

Create an in-memory object for MatchCondition.

Syntax

Default (Default)

New-AzFrontDoorWafMatchConditionObject
 -MatchValue <String[]>
 -MatchVariable <String>
 -OperatorProperty <String>
 [-NegateCondition <Boolean>]
 [-Selector <String>]
 [-Transform <String[]>]
 [<CommonParameters>]

Description

Create an in-memory object for MatchCondition.

Examples

Example 1: Create MatchCondition Object for WAF policy creation

New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows"
MatchValue : {Windows}
MatchVariable : RequestHeader
NegateCondition :
OperatorProperty : Contains
Selector : User-Agent
Transform :

Create MatchCondition Object for WAF policy creation

Example 2: Create MatchCondition Object for WAF policy creation

New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase
MatchValue : {WINDOWS}
MatchVariable : RequestHeader
NegateCondition :
OperatorProperty : Contains
Selector : User-Agent
Transform : {Uppercase}

Create a MatchCondition object

Parameters

-MatchValue

List of possible match values.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-MatchVariable

Request variable to compare with.

Parameter properties

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

Parameter sets

-NegateCondition

Describes if the result of this condition should be negated.

Parameter properties

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

Parameter sets

-OperatorProperty

Comparison type to use for matching with the variable value.

Parameter properties

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

Parameter sets

-Selector

Match against a specific key from the QueryString, PostArgs, RequestHeader or Cookies variables. Default is null.

Parameter properties

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

Parameter sets

-Transform

List of transforms.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

MatchCondition


Feedback

Was this page helpful?