Edit

Share via


New-AzApplicationGatewayFirewallPolicyException

Creates an exception on the Firewall Policy

Syntax

Default (Default)

New-AzApplicationGatewayFirewallPolicyException
    -MatchVariable <String>
    -Value <String[]>
    -ValueMatchOperator <String>
    [-SelectorMatchOperator <String>]
    [-Selector <String>]
    [-ExceptionManagedRuleSet <PSApplicationGatewayFirewallPolicyExclusionManagedRuleSet[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Examples

Example 1

$exceptionEntry = New-AzApplicationGatewayFirewallPolicyException -MatchVariable "RequestURI" -Value "hey","hi" -ValueMatchOperator "Contains"

This command creates a new exception-entry for the variable named RequestURI with the ValueMatchOperator as Contains and Match Values as hey and hi. The exception entry is saved in $exceptionEntry.

Parameters

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ExceptionManagedRuleSet

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Parameter properties

Type:

PSApplicationGatewayFirewallPolicyExclusionManagedRuleSet[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MatchVariable

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Parameter properties

Type:String
Default value:None
Accepted values:RequestURI, RemoteAddr, RequestHeader
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Selector

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SelectorMatchOperator

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Parameter properties

Type:String
Default value:None
Accepted values:Equals, Contains, StartsWith, EndsWith
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Value

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ValueMatchOperator

The New-AzApplicationGatewayFirewallPolicyException cmdlet creates a new exception rule list for the firewall policy.

Parameter properties

Type:String
Default value:None
Accepted values:Equals, Contains, StartsWith, EndsWith, IPMatch
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

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.

Inputs

None

Outputs

PSApplicationGatewayFirewallPolicyException