Variable assets are values that are available to all runbooks and DSC configurations in your automation account.
It will be usefull if they can be created, modified, and retrieved from Terraform.
resource "azurerm_automation_variable" "auto_variable" {
  name                = "myvariable"
  resource_group_name = "myautoaccount_rgname"
  account_name        = "myautoaccount_rgname"
  value               = "myvalue"
  encrypted           = true
  description         = "mydescription"
}
data "azurerm_automation_variable" "auto_variable" {
  name      = "myvariable"
  azurerm_automation_account_id = "/subscriptions/xxx-subscription_id-xxx/resourceGroups/my_rg_name/providers/Microsoft.Automation/automationAccounts/my_auto_account_name"
}
output "auto_variable" {
  value = "${data.azurerm_automation_variable.auto_variable.value}"
}
Hi @JamesDLD , thanks for using terraform and creating this feature request. I would like to implement them within next one or two weeks and please allow me to track the progress here:
azurerm_automation_string_variableazurerm_automation_null_variable~azurerm_automation_integer_variableazurerm_automation_bool_variableazurerm_automation_datetime_variableazurerm_automation_string_variableazurerm_automation_null_variable~azurerm_automation_integer_variableazurerm_automation_bool_variableazurerm_automation_datetime_variableAny news on this guys? Just wondering when this feature is going to be included in the provider
This feature would be really useful.. Any ideas what version of the provider this will be released with?
Any news on this guys? Just wondering when this feature is going to be included in the provider
This feature would be really useful.. Any ideas what version of the provider this will be released with?
Sorry for the delay in replying @laughtonsm and @odee30... Yes I do, this will be in v1.28.0 of the provider which should be shipping very soon.
Thanks @jeffreyCline . Good news. Really appreciate the update.
Great stuff. Thanks for the update!
Get Outlook for iOShttps://aka.ms/o0ukef
From: odee30 notifications@github.com
Sent: Thursday, May 9, 2019 10:03:46 PM
To: terraform-providers/terraform-provider-azurerm
Cc: Shaun Laughton; Mention
Subject: Re: [terraform-providers/terraform-provider-azurerm] Feature Request: resource azurerm_automation_variable (#1312)
Thanks @jeffreyClinehttps://github.com/jeffreyCline . Good news. Really appreciate the update.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/terraform-providers/terraform-provider-azurerm/issues/1312#issuecomment-491065571, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEMRQWL67ALV6BUVHDFO2NDPUSGTFANCNFSM4FCEJTYQ.
This has been released in version 1.28.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:
provider "azurerm" {
    version = "~> 1.28.0"
}
# ... other configuration ...
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!