Create Azure Automation Start/Stop solution through Terraform

守給你的承諾、 提交于 2020-08-10 19:39:16

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/52651326/create-azure-automation-start-stop-solution-through-terraform

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