New-AzApplicationGatewayFirewallCondition

Creates a match condition for custom rule

Syntax

New-AzApplicationGatewayFirewallCondition
   -MatchVariable <PSApplicationGatewayFirewallMatchVariable[]>
   -Operator <String>
   [-NegationCondition <Boolean>]
   -MatchValue <String[]>
   [-Transform <String[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzApplicationGatewayFirewallCondition creates a match condition for firewall custom rule.

Examples

Example 1

PS C:\> $condition = New-AzApplicationGatewayFirewallConditon -MatchVariables $variable -Operator Contains -NegationConditon false -Transforms Lowercase, Trim -MatchValues abc, cde

The command creates a new match condition using the match variable defined in the $variable, the operator is Contains and negation condition is false, Transfroms including lowercase and trim, the match value is abc and cde. The new match condition is saved in $condition.

Parameters

-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MatchValue

Match value.

Type:System.String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MatchVariable

List of match variables.

Type:Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayFirewallMatchVariable[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NegationCondition

Describes if this is negate condition or not.

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

Describes operator to be matched.

Type:String
Accepted values:IPMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith, Regex
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Transform

List of transforms.

Type:System.String[]
Accepted values:Lowercase, Trim, UrlDecode, UrlEncode, RemoveNulls, HtmlEntityDecode
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.Network.Models.PSApplicationGatewayFirewallCondition