Edit

Share via


New-AzApplicationGatewayFirewallPolicyManagedRule

Create ManagedRules for the firewall policy.

Syntax

Default (Default)

New-AzApplicationGatewayFirewallPolicyManagedRule

    [-ManagedRuleSet <PSApplicationGatewayFirewallPolicyManagedRuleSet[]>]
    [-Exclusion <PSApplicationGatewayFirewallPolicyExclusion[]>]
    [-Exception <PSApplicationGatewayFirewallPolicyException[]>]
    [-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.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Exception

List of Exception Entry.

Parameter properties

Type:

PSApplicationGatewayFirewallPolicyException[]

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

List of Exclusion Entry.

Parameter properties

Type:

PSApplicationGatewayFirewallPolicyExclusion[]

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

-ManagedRuleSet

List of Managed ruleSets.

Parameter properties

Type:

PSApplicationGatewayFirewallPolicyManagedRuleSet[]

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

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.

Inputs

None

Outputs

PSApplicationGatewayFirewallPolicyManagedRules