Set-AzFirewallPolicyRuleCollectionGroup
saves a modified azure firewall policy rule collection group
Syntax
Set-AzFirewallPolicyRuleCollectionGroup
-Name <String>
-ResourceGroupName <String>
-FirewallPolicyName <String>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzFirewallPolicyRuleCollectionGroup
-Name <String>
-FirewallPolicyObject <PSAzureFirewallPolicy>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzFirewallPolicyRuleCollectionGroup
-InputObject <PSAzureFirewallPolicyRuleCollectionGroupWrapper>
[-Priority <UInt32>]
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-AzFirewallPolicyRuleCollectionGroup
-ResourceId <String>
-Priority <UInt32>
[-RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-AzFirewallPolicyRuleCollectionGroup cmdlet updates a rule collection groups in an Azure Firewall Policy.
Examples
Example 1
Set-AzFirewallPolicyRuleCollectionGroup -Name rg1 -ResourceGroupName TestRg -Priority 200 -RuleCollection $filterRule1 -FirewallPolicyName "firewallPolicy"
This example updates a rule collection group in the firewall policy $fp
Example 2
saves a modified azure firewall policy rule collection group. (autogenerated)
Set-AzFirewallPolicyRuleCollectionGroup -FirewallPolicyName <String> -Name rg1 -Priority 200 -ResourceGroupName TestRg -RuleCollection <PSAzureFirewallPolicyBaseRuleCollection[]>
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 |
-InputObject
The list of rules
Type: | PSAzureFirewallPolicyRuleCollectionGroupWrapper |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
The resource name.
Type: | String |
Aliases: | ResourceName |
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 |
-ResourceId
The resource Id of the Rule collection groupy
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-RuleCollection
The list of rule collections
Type: | PSAzureFirewallPolicyBaseRuleCollection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
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
Outputs
Azure PowerShell