New-AzFirewallPolicyRuleCollectionGroupDraft
Create a new Azure Firewall Policy Rule Collection Group draft.
Syntax
SetByNameParameterSet (Default)
New-AzFirewallPolicyRuleCollectionGroupDraft
-AzureFirewallPolicyRuleCollectionGroupName <String>
-ResourceGroupName <String>
-AzureFirewallPolicyName <String>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzFirewallPolicyRuleCollectionGroupDraft
-AzureFirewallPolicyRuleCollectionGroupName <String>
-FirewallPolicyObject <PSAzureFirewallPolicy>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzFirewallPolicyRuleCollectionGroupDraft cmdlet creates a Rule Collection Group draft in an Azure Firewall Policy.
Examples
Example 1
New-AzFirewallPolicyRuleCollectionGroupDraft -AzureFirewallPolicyRuleCollectionGroupName rg1 -Priority 200 -RuleCollection $filterRule1 -FirewallPolicyObject $fp
TThis example creates a Rule Collection Group draft associated with the a Rule Collection Group rg1 in the Azure Firewall Policy $fp.
Example 2
Create a new Azure Firewall Policy Rule Collection Group draft. (autogenerated)
New-AzFirewallPolicyRuleCollectionGroupDraft -FirewallPolicyName <String> -AzureFirewallPolicyRuleCollectionGroupName rg1 -Priority 200 -ResourceGroupName TestRg
Parameters
-AzureFirewallPolicyName
The name of the firewall policy
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
SetByNameParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-AzureFirewallPolicyRuleCollectionGroupName
The name of the Rule Group associated with the draft.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
-FirewallPolicyObject
Firewall Policy.
Parameter properties
Parameter sets
SetByInputObjectParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Priority
The priority of the rule group.
Parameter properties
Type: UInt32
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The resource group name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
SetByNameParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-RuleCollection
The list of rules.
Parameter properties
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
(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 .
Outputs