New-AzFrontDoorWafMatchConditionObject
Create MatchCondition Object for WAF policy creation
Syntax
New-AzFrontDoorWafMatchConditionObject
-MatchVariable <String>
-OperatorProperty <String>
[-MatchValue <String[]>]
[-Selector <String>]
[-NegateCondition <Boolean>]
[-Transform <String[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Create MatchCondition Object for WAF policy creation
Examples
Example 1
New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "Windows"
MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform
------------- ---------------- ---------- -------- --------------- ---------
RequestHeader Contains {Windows} User-Agent False
Example 2
New-AzFrontDoorWafMatchConditionObject -MatchVariable RequestHeader -OperatorProperty Contains -Selector "User-Agent" -MatchValue "WINDOWS" -Transform Uppercase
MatchVariable OperatorProperty MatchValue Selector NegateCondition Transform
------------- ---------------- ---------- -------- --------------- ---------
RequestHeader Contains {WINDOWS} User-Agent False {Uppercase}
Create a MatchCondition object
Parameters
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Match value.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Match Variable. Possible values include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs','RequestUri', 'RequestHeader', 'RequestBody', 'SocketAddr'
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Describes if this is negate condition or not Default value is false
| Type: | Boolean |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Describes operator to be matched. Possible values include: 'Any', 'IPMatch', 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan', 'LessThanOrEqual', 'GreaterThanOrEqual', 'BeginsWith', 'EndsWith', 'RegEx'
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Name of selector in RequestHeader or RequestBody to be matched
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Transforms to apply. Possible values include: 'Lowercase', 'Uppercase', 'Trim', 'UrlDecode', 'UrlEncode', 'RemoveNulls'.
| Type: | String[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None
Outputs
Related Links
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ