New-AzFrontDoorWafManagedRuleOverrideObject
Create managed rule override object
Syntax
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
Type: | String |
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 |
-Disabled
Disabled state
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Exclusion
Exclusion
Type: | PSManagedRuleExclusion[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RuleId
Rule ID
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None