Skip to content

Commit

Permalink
Application Gateway AutoScale Example (#15071)
Browse files Browse the repository at this point in the history
* Add Example # 2

Example to convert an Application Gateway from Manual Scaling to AutoScale.

* Added Example

Added an additional example to the New-AzApplicationGatewayAutoscaleConfiguration cmdlet.

* Update ChangeLog.md

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
  • Loading branch information
sohaibMSFT and msJinLei authored May 21, 2021
1 parent 388e6a3 commit efc6605
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit efc6605

Please sign in to comment.