Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-AzFirewallPolicyRuleCollectionGroup

Create a new Azure Firewall Policy Rule Collection Group

Syntax

SetByNameParameterSet (Default)

New-AzFirewallPolicyRuleCollectionGroup
 -Name <String>
 -Priority <UInt32>
 -ResourceGroupName <String>
 -FirewallPolicyName <String>
 [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

SetByInputObjectParameterSet

New-AzFirewallPolicyRuleCollectionGroup
 -Name <String>
 -Priority <UInt32>
 -FirewallPolicyObject <PSAzureFirewallPolicy>
 [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

The New-AzFirewallPolicyRuleCollectionGroup cmdlet creates a rule collection group in a Azure Firewall Policy.

Examples

Example 1

New-AzFirewallPolicyRuleCollectionGroup -Name rg1 -Priority 200 -RuleCollection $filterRule1 -FirewallPolicyObject $fp

This example creates a rule collection group in the firewall policy $fp

Example 2

Create a new Azure Firewall Policy Rule Collection Group. (autogenerated)

New-AzFirewallPolicyRuleCollectionGroup -FirewallPolicyName <String> -Name rg1 -Priority 200 -ResourceGroupName TestRg

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-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

-FirewallPolicyName

The name of the firewall policy

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-FirewallPolicyObject

Firewall Policy.

Parameter properties

Type:PSAzureFirewallPolicy
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

The name of the Rule Group

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Priority

The priority of the rule group

Parameter properties

Type:UInt32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceGroupName

The resource group name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-RuleCollection

The list of rules

Parameter properties

Type:

PSAzureFirewallPolicyBaseRuleCollection[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

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

String

PSAzureFirewallPolicy

Outputs

PSAzureFirewallPolicyRuleCollectionGroup


Feedback

Was this page helpful?