New-AzFrontDoorWafManagedRuleOverrideObject
Create managed rule override object
Syntax
Default (Default)
New-AzFrontDoorWafManagedRuleOverrideObject
-RuleId <String>
[-Action <String>]
[-Disabled]
[-Exclusion <PSManagedRuleExclusion[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation.
Examples
Example 1
Create a managed rule override object for rule 942250 (which is in SQLI group).
New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log
RuleId EnabledState Action
------ ------------ ------
942250 Enabled Log
Parameters
-Action
Override Action
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
-Disabled
Disabled state
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
-Exclusion
Exclusion
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
-RuleId
Rule ID
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
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