New-AzFirewallPolicyRuleCollectionGroupDraft
Create a new Azure Firewall Policy Rule Collection Group draft.
Syntax
New-AzFirewallPolicyRuleCollectionGroupDraft
-AzureFirewallPolicyRuleCollectionGroupName <String>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
-ResourceGroupName <String>
-FirewallPolicyName <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzFirewallPolicyRuleCollectionGroupDraft
-AzureFirewallPolicyRuleCollectionGroupName <String>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
-FirewallPolicyObject <PSAzureFirewallPolicy>
[-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
-AzureFirewallPolicyRuleCollectionGroupName
The name of the Rule Group associated with the draft.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
-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 |