New-AzFrontDoorWafManagedRuleOverrideObject
Create an in-memory object for ManagedRuleOverride.
Syntax
Default (Default)
New-AzFrontDoorWafManagedRuleOverrideObject
-RuleId <String>
[-Action <String>]
[-Disabled]
[-Exclusion <IManagedRuleExclusion[]>]
[<CommonParameters>]
Description
Create an in-memory object for ManagedRuleOverride.
Examples
Example 1: Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation.
New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log
Action EnabledState Exclusion RuleId
------ ------------ --------- ------
Log 942250
Create PSAzureManagedRuleOverride Object for managed WAF rule group override object creation.
Parameters
-Action
Describes the override action to be applied when rule matches.
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 |
-Disabled
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
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
Describes the exclusions that are applied to this specific rule.
Parameter properties
| Type: | |
| 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 |
-RuleId
Identifier for the managed rule.
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.