Editar

Compartilhar via


New-AzApplicationGatewayFirewallPolicyExclusionManagedRuleGroup

Creates ExclusionManagedRuleGroup entry in ExclusionManagedRuleSets for the firewall policy exclusion.

Syntax

New-AzApplicationGatewayFirewallPolicyExclusionManagedRuleGroup
   -Name <String>
   [-Rule <PSApplicationGatewayFirewallPolicyExclusionManagedRule[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzApplicationGatewayFirewallPolicyExclusionManagedRuleGroup creates a exclusionManagedRuleGroup entry in a exclusionManagedRuleSet for a firewall policy exclusion.

Examples

Example 1

$ruleGroupEntry = New-AzApplicationGatewayFirewallPolicyExclusionManagedRuleGroup -RuleGroupName $ruleName -Rule $rule1,$rule2

Creates an ExclusionManagedRuleGroup entry with group name as $ruleName and Rules as $rule1, $rule2. Assigns the same to $ruleGroupEntry

Example 2

$ruleGroupEntry = New-AzApplicationGatewayFirewallPolicyExclusionManagedRuleGroup -RuleGroupName $ruleName

Creates an ExclusionManagedRuleGroup entry with group name as $ruleName. Assigns the same to $ruleGroupEntry

Parameters

-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

-Name

Rule Group Name.

Type:String
Aliases:RuleGroupName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Rule

List of Rules.

Type:PSApplicationGatewayFirewallPolicyExclusionManagedRule[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSApplicationGatewayFirewallPolicyExclusionManagedRuleGroup