New-AzApplicationGatewayAutoscaleConfiguration
Hiermee maakt u een configuratie voor automatisch schalen voor de Toepassingsgateway.
Syntaxis
New-AzApplicationGatewayAutoscaleConfiguration
-MinCapacity <Int32>
[-MaxCapacity <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
De New-AzApplicationGatewayAutoscaleConfiguration cmdlet maakt automatische schaalaanpassing voor een Azure-toepassingsgateway.
Voorbeelden
Voorbeeld 1
$AutoscaleConfig = New-AzApplicationGatewayAutoscaleConfiguration -MinCapacity 3
$Gateway = New-AzApplicationGateway -Name "AppGateway01" -ResourceGroupName "ResourceGroup01" -Location "West US" -BackendAddressPools $Pool -BackendHttpSettingsCollection $PoolSetting -FrontendIpConfigurations $FrontEndIpConfig -GatewayIpConfigurations $GatewayIpConfig -FrontendPorts $FrontEndPort -HttpListeners $Listener -RequestRoutingRules $Rule -Sku $Sku -AutoscaleConfiguration $AutoscaleConfig
Met de eerste opdracht maakt u een configuratie voor automatisch schalen met minimale capaciteit 3. Met de tweede opdracht maakt u een toepassingsgateway met de configuratie voor automatisch schalen.
Voorbeeld 2
$gw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
$gw.Sku.Capacity = $null
$gw.AutoscaleConfiguration = New-AzApplicationGatewayAutoscaleConfiguration -MinCapacity 2 -MaxCapacity 4
$gw = Set-AzApplicationGateway -ApplicationGateway $gw
Met de eerste opdracht krijgt u de configuratie van de Application Gateway in een variabele. Met de tweede opdracht wordt de SKU-capaciteitsvariabele gewist, zodat de configuratie voor automatische schaalaanpassing kan worden ingesteld. Met de derde opdracht wordt een nieuwe configuratie voor automatisch schalen voor de Toepassingsgateway opgegeven. Met de vierde opdracht wordt de nieuwe configuratie toegepast op de Application Gateway.
Parameters
-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 capaciteitseenheden die altijd beschikbaar zijn [en in rekening worden gebracht] voor application gateway.
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-MinCapacity
Minimale capaciteitseenheden die altijd beschikbaar zijn [en in rekening worden gebracht] voor application gateway.
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
None
Uitvoerwaarden
Verwante koppelingen
Azure PowerShell