问题
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