Scale up and scale down of azure app service plan (Based on non-business hours) using azure automation script

房东的猫 提交于 2020-06-28 04:24:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!