Set-AzApplicationGateway
Updates an application gateway.
Syntax
Default (Default)
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.
Parameter properties
Type: | PSApplicationGateway |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-AsJob
Run cmdlet in the background
Parameter properties
Type: | SwitchParameter |
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: | 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 |
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.