Edit

New-AzFrontDoorWafManagedRuleSetScopeObject

Create an in-memory object for ManagedRuleSetScope.

Syntax

Default (Default)

New-AzFrontDoorWafManagedRuleSetScopeObject
    -RuleSetType <String>
    -RuleSetVersion <String>
    [-RuleGroupScope <IRuleGroupScope[]>]
    [<CommonParameters>]

Description

Create an in-memory object for ManagedRuleSetScope.

Examples

Example 1: Create a WAF managed rule set scope object

$ruleScope = New-AzFrontDoorWafRuleScopeObject -RuleId 942100
$ruleGroupScope = New-AzFrontDoorWafRuleGroupScopeObject -RuleGroupName SQLI -RuleScope $ruleScope
New-AzFrontDoorWafManagedRuleSetScopeObject -RuleSetType DefaultRuleSet -RuleSetVersion 1.0 -RuleGroupScope $ruleGroupScope
RuleGroupScope RuleSetType    RuleSetVersion
-------------- -----------    --------------
{SQLI}         DefaultRuleSet 1.0

Create a WAF managed rule set scope object for the DefaultRuleSet rule set.

Parameters

-RuleGroupScope

List of rule group scopes.

Parameter properties

Type:

IRuleGroupScope[]

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

-RuleSetType

Defines the rule set type. Examples: DefaultRuleSet, Microsoft_DefaultRuleSet, Microsoft_BotManagerRuleSet, Microsoft_HTTPDDoSRuleSet, BotProtection.

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

-RuleSetVersion

Defines the version of the rule set.

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.

Outputs

ManagedRuleSetScope