New-AzApplicationGatewayFirewallPolicyManagedRuleOverride
Creates a managedRuleOverride entry for RuleGroupOverrideGroup entry.
Syntax
Default (Default)
New-AzApplicationGatewayFirewallPolicyManagedRuleOverride
-RuleId <String>
[-State <String>]
[-Action <String>]
[-Sensitivity <String>]
[-DefaultProfile <IAzureContextContainer>]
[-AcquirePolicyToken]
[-ChangeReference <String>]
[<CommonParameters>]
Description
The New-AzApplicationGatewayFirewallPolicyManagedRuleOverride creates a ruleOverride entry.
Examples
Example 1
$ruleOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId $ruleId -State Disabled
Creates a ruleOverride Entry with RuleId as $ruleId and State as Disabled.
Example 2
$ruleOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId $ruleId -State Enabled -Action Log
Creates a ruleOverride Entry with RuleId as $ruleId, State as Enabled and Action as Log.
Example 3
$ruleOverrideEntry = New-AzApplicationGatewayFirewallPolicyManagedRuleOverride -RuleId $ruleId -State Enabled -Action Log -Sensitivity Low
Creates a ruleOverride Entry with RuleId as $ruleId, State as Enabled, Action as Log and Sensitivity as Low.
Parameters
-AcquirePolicyToken
Acquire an Azure Policy token automatically for this resource operation.
Parameter properties
Type: SwitchParameter
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
-Action
Specify the Action in override rule entry.
Parameter properties
Type: String
Default value: None
Accepted values: AnomalyScoring, Allow, Block, Log
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
-ChangeReference
The change reference resource ID for this resource operation.
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
-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
-RuleId
Specify the RuleId in override rule entry.
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
-Sensitivity
Describes the override sensitivity to be applied when rule matches.
Parameter properties
Type: String
Default value: None
Accepted values: Low, Medium, High
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
-State
Specify the RuleId in override rule entry.
Parameter properties
Type: String
Default value: Disabled
Accepted values: Disabled, Enabled
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
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