New-AzureRmFrontDoorMatchConditionObject
Create MatchCondition Object for WAF policy creation
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Syntax
New-AzureRmFrontDoorMatchConditionObject
-MatchVariable <PSMatchVariable>
-OperatorProperty <PSOperatorProperty>
-MatchValue <String[]>
[-Selector <String>]
[-NegateCondition <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Create MatchCondition Object for WAF policy creation
Examples
Example 1
PS C:\> New-AzureRmFrontDoorMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "UserAgent" -MatchValue "Windows"
MatchVariable : RequestHeader
OperatorProperty : Contains
MatchValue : {Windows}
Selector : UserAgent
NegateCondition : False
Create a MatchCondition object
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MatchValue
Match value.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MatchVariable
Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs','RequestUri', 'RequestHeader', 'RequestBody'
Type: | PSMatchVariable |
Accepted values: | RemoteAddr, RequestMethod, QueryString, PostArgs, RequestUri, RequestHeader, RequestBody |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NegateCondition
Describes if this is negate condition or not Default value is false
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OperatorProperty
Describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith''
Type: | PSOperatorProperty |
Accepted values: | Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Inputs
None