Use this data source to access information about an existing Automation Object Variable.
data "azurerm_automation_variable_object" "example" {
name = "tfex-example-var"
resource_group_name = "tfex-example-rg"
automation_account_name = "tfex-example-account"
}
output "variable" {
value = jsondecode(data.azurerm_automation_variable_object.example.value)
}
The following arguments are supported:
name
- The name of the Automation Variable.
resource_group_name
- The Name of the Resource Group where the automation account exists.
automation_account_name
- The name of the automation account in which the Automation Variable exists.
The following attributes are exported:
id
- The ID of the Automation Variable.
description
- The description of the Automation Variable.
encrypted
- Specifies if the Automation Variable is encrypted. Defaults to false
.
value
- The value of the Automation Variable as a json encoded string
.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Automation Object Variable.