Manages a boolean variable in Azure Automation
resource "azurerm_resource_group" "example" {
name = "tfex-example-rg"
location = "West Europe"
}
resource "azurerm_automation_account" "example" {
name = "tfex-example-account"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku_name = "Basic"
}
resource "azurerm_automation_variable_bool" "example" {
name = "tfex-example-var"
resource_group_name = azurerm_resource_group.example.name
automation_account_name = azurerm_automation_account.example.name
value = false
}
The following arguments are supported:
name
- (Required) The name of the Automation Variable. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the resource group in which to create the Automation Variable. Changing this forces a new resource to be created.
automation_account_name
- (Required) The name of the automation account in which the Variable is created. Changing this forces a new resource to be created.
description
- (Optional) The description of the Automation Variable.
encrypted
- (Optional) Specifies if the Automation Variable is encrypted. Defaults to false
.
value
- (Optional) The value of the Automation Variable as a boolean
.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Automation Variable.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Automation Bool Variable.update
- (Defaults to 30 minutes) Used when updating the Automation Bool Variable.read
- (Defaults to 5 minutes) Used when retrieving the Automation Bool Variable.delete
- (Defaults to 30 minutes) Used when deleting the Automation Bool Variable.Automation Bool Variable can be imported using the resource id
, e.g.
terraform import azurerm_automation_variable_bool.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/tfex-example-rg/providers/Microsoft.Automation/automationAccounts/tfex-example-account/variables/tfex-example-var