New-AzFirewallPolicyFilterRuleCollection

Create a new Azure Firewall Policy Filter Rule Collection

Syntax

New-AzFirewallPolicyFilterRuleCollection
   -Name <String>
   -Priority <UInt32>
   [-Rule <PSAzureFirewallPolicyRule[]>]
   -ActionType <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzFirewallPolicyFilterRuleCollection cmdlet creates a Filter rule collection for a Azure Firewall Policy.

Examples

Example 1

New-AzFirewallPolicyFilterRuleCollection -Name FR1 -Priority 400 -Rule $appRule1 ,$appRule2 -ActionType "Allow"

This example creates a Filter rule with 2 rule conditions

Parameters

-ActionType

The action of the rule collection

Type:String
Accepted values:Allow, Deny
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-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

The name of the Application Rule Collection

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

-Priority

The priority of the rule collection

Type:UInt32
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Rule

The list of application rules

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

Inputs

None

Outputs

PSAzureFirewallPolicyRuleCollectionGroup