Forum Discussion

itglobalservice's avatar
itglobalservice
Copper Contributor
Feb 22, 2023
Solved

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...
  • ChrisBradshaw's avatar
    Mar 20, 2023

    itglobalservice 

     

    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 )