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

New-AzApplicationGatewayFirewallPolicyManagedRule

Create ManagedRules for the firewall policy.

Syntax

New-AzApplicationGatewayFirewallPolicyManagedRule
   [-ManagedRuleSet <PSApplicationGatewayFirewallPolicyManagedRuleSet[]>]
   [-Exclusion <PSApplicationGatewayFirewallPolicyExclusion[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzApplicationGatewayFirewallPolicyManagedRule creates a managed-rules for a firewall policy.

Examples

Example 1

$condition = New-AzApplicationGatewayFirewallPolicyManagedRule -ManagedRuleSet $managedRuleSet -Exclusion $exclusion1,$exclusion2

The command creates managed rules a list of ManagedRuleSet with $managedRuleSet and an exclusion list with entries as $exclusion1, $exclusion2.

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

-Exclusion

List of Exclusion Entry.

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

-ManagedRuleSet

List of Managed ruleSets.

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

Inputs

None

Outputs

PSApplicationGatewayFirewallPolicyManagedRules