Modifier

Partager via


New-AzFrontDoorRulesEngineMatchConditionObject

Create a PSRulesEngineMatchCondition object for creating a rules engine rule.

Syntax

New-AzFrontDoorRulesEngineMatchConditionObject
   -MatchVariable <PSRulesEngineMatchVariable>
   -MatchValue <String[]>
   [-Selector <String>]
   [-Operator <PSRulesEngineOperator>]
   [-NegateCondition <Boolean>]
   [-Transform <PSTransform[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Create a PSRulesEngineMatchCondition object for creating a rules engine rule.

Examples

Example 1

New-AzFrontDoorRulesEngineMatchConditionObject -MatchVariable RequestHeader -Operator Equal -MatchValue allowoverride -Transform "LowerCase", "UpperCase"-Selector Rules-Engine-Route-Forward -NegateCondition $false

RulesEngineMatchVariable : RequestHeader
RulesEngineMatchValue    : {allowoverride}
Selector                 : Rules-Engine-Route-Forward
RulesEngineOperator      : Equal
NegateCondition          : False
Transform                : {Lowercase, Uppercase}

Greate a new PSRulesEngineMatchCondition object.

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

-MatchValue

Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.

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

-MatchVariable

Match Variable. Possible values are IsMobile, RemoteAddr, RequestMethod, QueryString, PostArg, RequestUri, RequestPath, RequestFileName, RequestfilenameExtension, RequestHeader, RequestBody, RequestScheme

Type:PSRulesEngineMatchVariable
Accepted values:IsMobile, RemoteAddr, RequestMethod, QueryString, PostArgs, RequestUri, RequestPath, RequestFilename, RequestFilenameExtension, RequestHeader, RequestBody, RequestScheme
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-NegateCondition

Describes if this is negate condition or not

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

-Operator

Describes operator to apply to the match condition. Possible values are Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith.

Type:PSRulesEngineOperator
Accepted values:Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Selector

Name of selector in RequestHeader or RequestBody to be matched

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

-Transform

List of what transforms are applied before matching. Possible individual transform values are Lowercase, Uppercase, Trim, UrlDecode, UrlEncode, RemoveNulls.

Type:PSTransform[]
Accepted values:Lowercase, Uppercase, Trim, UrlDecode, UrlEncode, RemoveNulls
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSRulesEngineMatchCondition