是否可以在 Azure VM 中自动关闭以节省成本?

Is it possible to automate shutdown in Azure VMs to save costs?

我正在尝试从 Azure 门户创建 VM。

我按照这个 Microsoft 文档创建了它:https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-portal

我使用 Windows Server 2019 映像成功创建了 VM。我必须每天工作到下午 5 点,并且必须在注销工作时手动关闭它。如果我忘记手动关闭它以在不使用时节省成本,是否有任何方法可以自动关闭它?或者有没有模板可以做到这一点?

如果可能的话,你能帮我看看具体步骤吗?

感谢任何帮助...

您看过自动化帐户吗?这是虚拟机本身的 steps to configure VM to start/shut down based on hours. or you can set it as Auto shutdown

是的,你可以这样做,为此你需要打开你的 Azure VM,在左窗格中的操作下有一个 Auto-shutdown 选项,你可以利用它来设置你需要关闭的时间虚拟机

还有一个功能可以在关机前通知用户,以便他们可以保存任何未保存的工作