From f0e405db0531ee29a6ecfdb07914749e8bd31dad Mon Sep 17 00:00:00 2001 From: sohaibMSFT <84540426+sohaibMSFT@users.noreply.github.com> Date: Thu, 20 May 2021 20:29:29 +0100 Subject: [PATCH 1/3] Add Example # 2 Example to convert an Application Gateway from Manual Scaling to AutoScale. --- ...w-AzApplicationGatewayAutoscaleConfiguration.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Network/Network/help/New-AzApplicationGatewayAutoscaleConfiguration.md b/src/Network/Network/help/New-AzApplicationGatewayAutoscaleConfiguration.md index 6b826bb43da7..9edf2fe4c77f 100644 --- a/src/Network/Network/help/New-AzApplicationGatewayAutoscaleConfiguration.md +++ b/src/Network/Network/help/New-AzApplicationGatewayAutoscaleConfiguration.md @@ -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 -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 From 2f6c0f055a03469025683372651944c3673c91fc Mon Sep 17 00:00:00 2001 From: sohaibMSFT <84540426+sohaibMSFT@users.noreply.github.com> Date: Thu, 20 May 2021 20:41:55 +0100 Subject: [PATCH 2/3] Added Example Added an additional example to the New-AzApplicationGatewayAutoscaleConfiguration cmdlet. --- src/Network/Network/ChangeLog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Network/Network/ChangeLog.md b/src/Network/Network/ChangeLog.md index fc2b188e8a02..924c92f38795 100644 --- a/src/Network/Network/ChangeLog.md +++ b/src/Network/Network/ChangeLog.md @@ -25,6 +25,8 @@ - `New-AzNetworkInterface` - `New-AzPublicIpAddress` - `New-AzVirtualNetwork` +* Added example to New-AzApplicationGatewayAutoscaleConfiguration + - `Example to convert Application Gateway scaling from Manual to Auto` ## Version 4.7.0 * Added new cmdlets to replace old product name `virtual router` with new name `route server` in the future. From 7ddc17cca49781112dce05978d01ff8a76d91276 Mon Sep 17 00:00:00 2001 From: Jin Lei <54836179+msJinLei@users.noreply.github.com> Date: Fri, 21 May 2021 11:23:56 +0800 Subject: [PATCH 3/3] Update ChangeLog.md --- src/Network/Network/ChangeLog.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Network/Network/ChangeLog.md b/src/Network/Network/ChangeLog.md index 924c92f38795..fc2b188e8a02 100644 --- a/src/Network/Network/ChangeLog.md +++ b/src/Network/Network/ChangeLog.md @@ -25,8 +25,6 @@ - `New-AzNetworkInterface` - `New-AzPublicIpAddress` - `New-AzVirtualNetwork` -* Added example to New-AzApplicationGatewayAutoscaleConfiguration - - `Example to convert Application Gateway scaling from Manual to Auto` ## Version 4.7.0 * Added new cmdlets to replace old product name `virtual router` with new name `route server` in the future.