Editar

Compartilhar via


New-AzApplicationGatewayFirewallPolicyManagedRuleOverride

Creates a managedRuleOverride entry for RuleGroupOverrideGroup entry.

Syntax

New-AzApplicationGatewayFirewallPolicyManagedRuleOverride
   -RuleId <String>
   [-State <String>]
   [-Action <String>]
   [-Sensitivity <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<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

-Action

Specify the Action in override rule entry.

Type:String
Accepted values:AnomalyScoring, Allow, Block, Log
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RuleId

Specify the RuleId in override rule entry.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Sensitivity

Describes the override sensitivity to be applied when rule matches.

Type:String
Accepted values:None, Low, Medium, High
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-State

Specify the RuleId in override rule entry.

Type:String
Accepted values:Disabled, Enabled
Position:Named
Default value:Disabled
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSApplicationGatewayFirewallPolicyManagedRuleOverride