通过 Terraform 创建 Azure 自动化启动/停止解决方案 [英] Create Azure Automation Start/Stop solution through Terraform

查看:21
本文介绍了通过 Terraform 创建 Azure 自动化启动/停止解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用新的 Azure 自动化插件(https://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management) 由以下人员设置地形.

I'm trying to set up machines to be automatically start/stopped using the newish Azure Automation add-in (https://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management) with this being set up by Terraform.

我可以创建自动化帐户,但我不知道如何创建启停功能,有人可以帮忙填空吗?

I can create the automation account but I don't know how to create the start-stop functionality, can someone help fill in the blanks?

推荐答案

AzureRM 提供程序可以管理运行手册的各个方面.如果您查看文档这里.使用 azurerm_automation_runbook 和 azurerm_automation_schedule 可以创建和计划运行手册.Microsoft 解决方案需要运行手册上的参数,我在提供程序中看不到任何属性来添加参数,因此这可能是不可能的.

the AzureRM provider can manage aspects of runbooks. If you have a look at the documentation here. Using azurerm_automation_runbook and azurerm_automation_schedule you can create and schedule runbooks. The Microsoft solution requires parameters on the runbooks, I don't see any attributes in the provider to add parameters so this may not be possible.

这篇关于通过 Terraform 创建 Azure 自动化启动/停止解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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