Use this data source to access information about an existing Automation Datetime Variable.
data "azurerm_automation_variable_datetime" "example" {
name = "tfex-example-var"
resource_group_name = "tfex-example-rg"
automation_account_name = "tfex-example-account"
}
output "variable_id" {
value = data.azurerm_automation_variable_datetime.example.id
}
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 in the RFC3339 Section 5.6 Internet Date/Time Format.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Automation Datetime Variable.