Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Gateway AutoScale Example #15071

Merged
merged 3 commits into from
May 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ PS C:\> $gw = New-AzApplicationGateway -Name $appgwName -ResourceGroupName $rgna
The first command creates an autoscale configuration with minimum capacity 3.
The second command creates an application gateway with the autoscale configuration.

### Example 2

```powershell
PS C:\> $gw = Get-AzApplicationGateway -Name <Name> -ResourceGroupName <ResourceGroupName>
PS C:\> $gw.Sku.Capacity = $null
PS C:\> $gw.AutoscaleConfiguration = New-AzApplicationGatewayAutoscaleConfiguration -MinCapacity 2 -MaxCapacity 4
PS C:\> $gw = Set-AzApplicationGateway -ApplicationGateway $gw
```

The first command gets the configuration of the Application Gateway into a variable.
The second command clears the SKU Capacity variable to allow the Autoscale Configuration to be set.
The third command specifies a new AutoScale Configuration for the Application Gateway.
The fourth command applies the new configuration to the Application Gateway.

## PARAMETERS

### -DefaultProfile
Expand Down