Upravit

Sdílet prostřednictvím


New-AzFirewallPolicyRuleCollectionGroup

Create a new Azure Firewall Policy Rule Collection Group

Syntax

New-AzFirewallPolicyRuleCollectionGroup
   -Name <String>
   -Priority <UInt32>
   [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
   -ResourceGroupName <String>
   -FirewallPolicyName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzFirewallPolicyRuleCollectionGroup
   -Name <String>
   -Priority <UInt32>
   [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
   -FirewallPolicyObject <PSAzureFirewallPolicy>
   [-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.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
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

-FirewallPolicyName

The name of the firewall policy

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

-FirewallPolicyObject

Firewall Policy.

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

-Name

The name of the Rule Group

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

-Priority

The priority of the rule group

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

-ResourceGroupName

The resource group name.

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

-RuleCollection

The list of rules

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

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

PSAzureFirewallPolicy

Outputs

PSAzureFirewallPolicyRuleCollectionGroup