你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzFrontDoorWafManagedRuleOverrideObject

为 ManagedRuleOverride 创建内存中对象。

语法

Default (默认值)

New-AzFrontDoorWafManagedRuleOverrideObject
    -RuleId <String>
    [-Action <String>]
    [-Disabled]
    [-Exclusion <IManagedRuleExclusion[]>]
    [<CommonParameters>]

说明

为 ManagedRuleOverride 创建内存中对象。

示例

示例 1:为托管 WAF 规则组创建 PSAzureManagedRuleOverride 对象替代对象创建。

New-AzFrontDoorWafManagedRuleOverrideObject -RuleId "942250" -Action Log
Action EnabledState Exclusion RuleId
------ ------------ --------- ------
Log                           942250

为托管 WAF 规则组创建 PSAzureManagedRuleOverride 对象替代对象创建。

参数

-Action

描述规则匹配时要应用的替代操作。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Disabled

描述托管规则是否处于启用或禁用状态。 如果未指定,则默认为 Disabled。

参数属性

类型:SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Exclusion

描述应用于此特定规则的排除项。

参数属性

类型:

IManagedRuleExclusion[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-RuleId

托管规则的标识符。

参数属性

类型:String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输出

ManagedRuleOverride