问题
I have to Scale up and scale down of azure app service plan (Based on non-business hours) using azure automation service.
I have visited lot of websites but everywhere it is about scale out or increasing/decreasing the instance count.
But my requirement is I want to change app service plan from S2 to S1 and vice versa based on timings.
Please help me....
回答1:
this is what you are looking for:
Set-AzureRmAppServicePlan -ResourceGroupName $ResourceGroupName -Name $ServicePlanName -Location $WebAppLocation -Tier Standard -NumberofWorkers 1 -WorkerSize "Small"
workerSize can be small, medium, large, extralarge
来源:https://stackoverflow.com/questions/53924187/scale-up-and-scale-down-of-azure-app-service-plan-based-on-non-business-hours