Manages a Automation Account.
resource "azurerm_resource_group" "example" {
name = "resourceGroup1"
location = "West Europe"
}
resource "azurerm_automation_account" "example" {
name = "automationAccount1"
location = "${azurerm_resource_group.example.location}"
resource_group_name = "${azurerm_resource_group.example.name}"
sku {
name = "Basic"
}
tags {
environment = "development"
}
}
The following arguments are supported:
name - (Required) Specifies the name of the Automation Account. Changing this forces a new resource to be created.
resource_group_name - (Required) The name of the resource group in which the Automation Account is created. Changing this forces a new resource to be created.
location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
sku - (Required) A sku block as defined below.
tags - (Optional) A mapping of tags to assign to the resource.
sku supports the following:
name - (Optional) The SKU name of the account - only Basic is supported at this time. Defaults to Basic. The following attributes are exported:
id - The Automation Account ID. Automation Accounts can be imported using the resource id, e.g.
terraform import azurerm_automation_account.account1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/r/automation_account.html