編輯

共用方式為


Set-AzApplicationGateway

Updates an application gateway.

Syntax

Set-AzApplicationGateway
   -ApplicationGateway <PSApplicationGateway>
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzApplicationGateway cmdlet updates an Azure application gateway.

Examples

Example 1: Update an application gateway

$AppGw = Get-AzApplicationGateway -Name Test -ResourceGroupName Appgwtest
$AppGw.Tag = @{"key"="value"}
$UpdatedAppGw = Set-AzApplicationGateway -ApplicationGateway $AppGw

These commands update the application gateway with settings in the $AppGw variable and stores the updated gateway in the $UpdatedAppGw variable.

Parameters

-ApplicationGateway

Specifies an application gateway object representing the state to which the application gateway should be set.

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

-AsJob

Run cmdlet in the background

Type:SwitchParameter
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

Inputs

PSApplicationGateway

Outputs

PSApplicationGateway