Edit

Share via


Set-AzFirewallPolicyRuleCollectionGroupDraft

Sets a modified Azure Firewall Policy Rule Collection Group draft.

Syntax

SetByNameParameterSet (Default)

Set-AzFirewallPolicyRuleCollectionGroupDraft
    -AzureFirewallPolicyRuleCollectionGroupName <String>
    -ResourceGroupName <String>
    -AzureFirewallPolicyName <String>
    -Priority <UInt32>
    [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SetByParentInputObjectParameterSet

Set-AzFirewallPolicyRuleCollectionGroupDraft
    -AzureFirewallPolicyRuleCollectionGroupName <String>
    -FirewallPolicyObject <PSAzureFirewallPolicy>
    -Priority <UInt32>
    [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SetByInputObjectParameterSet

Set-AzFirewallPolicyRuleCollectionGroupDraft

    -InputObject <PSAzureFirewallPolicyRuleCollectionGroupDraftWrapper>
    [-Priority <UInt32>]
    [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

SetByResourceIdParameterSet

Set-AzFirewallPolicyRuleCollectionGroupDraft
    -ResourceId <String>
    -Priority <UInt32>
    [-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Set-AzFirewallPolicyRuleCollectionGroupDraft cmdlet updates a rule collection group draft in an Azure Firewall Policy.

Examples

Example 1

Set-AzFirewallPolicyRuleCollectionGroupDraft -AzureFirewallPolicyRuleCollectionGroupName rg1 -ResourceGroupName TestRg -Priority 200 -RuleCollection $filterRule1 -AzureFirewallPolicyName "firewallPolicy"

This example updates a rule collection group draft in the firewall policy $fp.

Example 2

Sets a modified Azure Firewall Policy Rule Collection Group draft. (autogenerated)

Set-AzFirewallPolicyRuleCollectionGroupDraft -AzureFirewallPolicyName <String> -AzureFirewallPolicyRuleCollectionGroupName rg1 -Priority 200 -ResourceGroupName TestRg -RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>

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 collection group associated with the draft.

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

-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

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

Parameter sets

SetByParentInputObjectParameterSet
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

The rule collection group draft.

Parameter properties

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

Parameter sets

SetByInputObjectParameterSet
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
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

SetByNameParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SetByParentInputObjectParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
SetByResourceIdParameterSet
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

-ResourceId

The resource Id of the Rule collection group.

Parameter properties

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

Parameter sets

SetByResourceIdParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-RuleCollection

The list of rule collections.

Parameter properties

Type:

PSAzureFirewallPolicyBaseRuleCollection[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
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.

Inputs

String

PSAzureFirewallPolicy

Outputs

PSAzureFirewallPolicyRuleCollectionGroup