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 )
itglobalservice
Mar 20, 2023Copper Contributor
Thank you Chris.
I will try this week your solution and let you know I noticed that you made a mistake in the example. You wrote "Set-AzFunctionAppPlan" and not "Set-AzAppServicePlan"
ChrisBradshaw
Mar 21, 2023Iron Contributor
Good spot- Thanks, I've corrected my reply in case anyone comes across this in the future.
- HudsonCarvalhoMay 23, 2023Copper Contributor
ChrisBradshaw
I'm trying to execute a up scale to sku P2v3, but i get this error:Could you help me to solve this?
- itglobalserviceMay 24, 2023Copper ContributorAre you using the script posted by Chris ?