Editar

Compartir a través de


Set-AzApplicationGatewayFirewallPolicy

Updates an application gateway firewall policy.

Syntax

Set-AzApplicationGatewayFirewallPolicy
   -InputObject <PSApplicationGatewayWebApplicationFirewallPolicy>
   [-CustomRule <PSApplicationGatewayFirewallCustomRule[]>]
   [-PolicySetting <PSApplicationGatewayFirewallPolicySettings>]
   [-ManagedRule <PSApplicationGatewayFirewallPolicyManagedRules>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzApplicationGatewayFirewallPolicy
   -Name <String>
   -ResourceGroupName <String>
   [-CustomRule <PSApplicationGatewayFirewallCustomRule[]>]
   [-PolicySetting <PSApplicationGatewayFirewallPolicySettings>]
   [-ManagedRule <PSApplicationGatewayFirewallPolicyManagedRules>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzApplicationGatewayFirewallPolicy
   -ResourceId <String>
   [-CustomRule <PSApplicationGatewayFirewallCustomRule[]>]
   [-PolicySetting <PSApplicationGatewayFirewallPolicySettings>]
   [-ManagedRule <PSApplicationGatewayFirewallPolicyManagedRules>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-AzApplicationGatewayFirewallPolicy cmdlet updates an Azure application gateway firewall policy.

Examples

Example 1

$UpdatedAppGwFirewallPolicy = Set-AzApplicationGatewayFirewallPolicy -InputObject $AppGwFirewallPolicy

This command updates the application gateway firewall policy with settings in the $AppGwFirewallPolicy variable and stores the updated application gateway firewall policy in the $UpdatedAppGwFirewallPolicy variable.

Parameters

-AsJob

Run cmdlet in the background

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

-CustomRule

The list of CustomRules

Type:PSApplicationGatewayFirewallCustomRule[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
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

-InputObject

The applicationGatewayFirewallPolicy

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

-ManagedRule

ManagedRules of the firewall policy

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

-Name

The Firewall Policy Name.

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

-PolicySetting

Policysettings of the firewall policy

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

-ResourceGroupName

The resource group name.

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

-ResourceId

The Azure resource ID.

Type:String
Position:Named
Default value:None
Required:True
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

PSApplicationGatewayWebApplicationFirewallPolicy

Outputs

PSApplicationGatewayWebApplicationFirewallPolicy