Set-AzApplicationGatewayAutoscaleConfiguration
更新應用程式閘道的自動調整設定。
語法
Set-AzApplicationGatewayAutoscaleConfiguration
-ApplicationGateway <PSApplicationGateway>
-MinCapacity <Int32>
[-MaxCapacity <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-AzApplicationGatewayAutoscaleConfiguration Cmdlet 會修改應用程式閘道的現有自動調整組態。
範例
範例 1
$gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
$gw = Set-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $gw -MinCapacity 5
$gw = Set-AzApplicationGateway -ApplicationGateway $gw
第一個命令會取得應用程式閘道,並將它儲存在 $gw 變數中。 第二個命令會從應用程式閘道更新自動調整組態。 第三個命令會更新 Azure 上的應用程式閘道。
範例 2
更新應用程式閘道的自動調整設定。 ( 自動產生 )
Set-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway <PSApplicationGateway> -MaxCapacity 5 -MinCapacity 4
參數
-ApplicationGateway
applicationGateway
類型: | PSApplicationGateway |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-MaxCapacity
應用程式閘道的最大容量。
類型: | Nullable<T>[Int32] |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-MinCapacity
應用程式閘道的最小容量。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |