使用azure自动化脚本按比例扩展和按比例缩小azure应用程序服务计划(基于非工作时间) [英] Scale up and scale down of azure app service plan (Based on non-business hours) using azure automation script

本文介绍了使用azure自动化脚本按比例扩展和按比例缩小azure应用程序服务计划(基于非工作时间)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用azure自动化服务扩展和缩减azure应用服务计划(基于非工作时间).

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.

但是我的要求是我想根据时间将应用程序服务计划从S​​2更改为S1,反之亦然.

But my requirement is I want to change app service plan from S2 to S1 and vice versa based on timings.

请帮助我....

推荐答案

这是您要寻找的:

Set-AzureRmAppServicePlan -ResourceGroupName $ResourceGroupName -Name $ServicePlanName -Location $WebAppLocation -Tier Standard -NumberofWorkers 1 -WorkerSize "Small"

workerSize可以是小号,中号,大号或超大号

workerSize can be small, medium, large, extralarge

这篇关于使用azure自动化脚本按比例扩展和按比例缩小azure应用程序服务计划(基于非工作时间)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆