Forum Discussion
itglobalservice
Feb 22, 2023Copper Contributor
Schedule script to scale up AppServicePlan
I need to scale up / down a Basic App Service Plan on a daily time. Example: 8:00 am -> Scale UP B3 8:00 pm -> Scale DOWN B2 Using AZ CLI in PS all work fine with this simple script: az...
- Mar 20, 2023
My suggestion would be to use Set-AzAppServicePlan in your Automation to do the resize, for example:
Set-AzAppServicePlan -ResourceGroupName "MyResourceGroup" -Name "MyAppPlan" -workerSize Large-workerSize Large equates to B3, and -workerSize Medium is B2
(edit- corrected a copy and paste error spotted by itglobalservice )
ChrisBradshaw
Mar 20, 2023Iron Contributor
My suggestion would be to use Set-AzAppServicePlan in your Automation to do the resize, for example:
Set-AzAppServicePlan -ResourceGroupName "MyResourceGroup" -Name "MyAppPlan" -workerSize Large
-workerSize Large equates to B3, and -workerSize Medium is B2
(edit- corrected a copy and paste error spotted by itglobalservice )
itglobalservice
Mar 20, 2023Copper Contributor
You've got it ! It worked fine !!!!
Thank you for support.
Thank you for support.