Set-AzApplicationGatewayAutoscaleConfiguration
Hiermee wordt de configuratie van automatische schaalaanpassing van een toepassingsgateway bijgewerkt.
Syntaxis
Set-AzApplicationGatewayAutoscaleConfiguration
-ApplicationGateway <PSApplicationGateway>
-MinCapacity <Int32>
[-MaxCapacity <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De Set-AzApplicationGatewayAutoscaleConfiguration cmdlet wijzigt de bestaande configuratie voor automatisch schalen van een Application Gateway.
Voorbeelden
Voorbeeld 1
$gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
$gw = Set-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway $gw -MinCapacity 5
$gw = Set-AzApplicationGateway -ApplicationGateway $gw
Met de eerste opdracht wordt de toepassingsgateway opgeslagen in $gw variabele. Met de tweede opdracht wordt de configuratie voor automatisch schalen bijgewerkt vanuit de toepassingsgateway. Met de derde opdracht wordt de toepassingsgateway in Azure bijgewerkt.
Voorbeeld 2
Hiermee wordt de configuratie van automatische schaalaanpassing van een toepassingsgateway bijgewerkt. (automatisch gegenereerd)
Set-AzApplicationGatewayAutoscaleConfiguration -ApplicationGateway <PSApplicationGateway> -MaxCapacity 5 -MinCapacity 4
Parameters
-ApplicationGateway
De applicationGateway
Type: | PSApplicationGateway |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-MaxCapacity
Maximale capaciteit voor application gateway.
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-MinCapacity
Minimale capaciteit voor toepassingsgateway.
Type: | Int32 |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell