如何以每周频率停止和启动Azure VM? [英] How to STOP and START Azure VMs on weekly frequency?

查看:73
本文介绍了如何以每周频率停止和启动Azure VM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

我们有几台Azure服务器,希望在星期六停止它们,并在星期一(每周频率)开始。

We have couple of Azure servers and would like to stop them on saturday and start on monday (weekly frequency).

有没有办法安排这个停止和启动服务器的过程?

Is there any way to schedule this process of stopping and starting the servers?

我在门户网站上找到了解决方案但是每天都会关闭,这不是我想要的for。

I found solution on portal but that will shut down on daily basis which is not what i am looking for.

任何帮助或参考都非常有帮助。在此先感谢。

Any help or reference is very helpful. Thanks in advance.




推荐答案

这是脚本将关闭您订阅中的所有虚拟机(但您可以将其编辑到您的特定虚拟机)。

Here is the script which will turn off all your VMs in your subscription (But you can edit it to your specific VMs).

https://gallery.technet.microsoft.com/Script-to- turn-off-all-VMs-dfd3740a

https://gallery.technet.microsoft.com/Script-to-turn-OFF-all-VMs-dfd3740a

您需要做的就是创建一个调度程序并运行此脚本。 

All you need to do is to create a scheduler and run this script. 

--- -------------------------------------------------- -------------------------------------------------- ----

如果您发现这篇文章有帮助,请给它一个"有用"的投票。 

如果答案有帮助,请记得将答案标记为答案。


这篇关于如何以每周频率停止和启动Azure VM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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