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>]
[-WhatIf]
[-Confirm]
[<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
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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 managed rule sets that are associated with the exception.
Parameter properties
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 variable on which we evaluate the exception condition.
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
When the matchVariable points to a key-value pair (e.g, RequestHeader), this identifies the key.
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
When the matchVariable points to a key-value pair (e.g, RequestHeader), this operates on the selector.
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
Allowed values for the matchVariable.
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
Operates on the allowed values for the matchVariable.
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
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
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 .
None
Outputs