Terraform-provider-azurerm: Feature Request: resource azurerm_automation_variable

Created on 29 May 2018  ·  8Comments  ·  Source: terraform-providers/terraform-provider-azurerm

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

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.

New or Affected Resource(s)

  • Affected resource : azurerm_automation_account
  • New Automation resource : azurerm_automation_variable
  • New Data resource : azurerm_automation_variable

Potential Terraform Configuration

  1. Automation resource : azurerm_automation_variable
resource "azurerm_automation_variable" "auto_variable" {
  name                = "myvariable"
  resource_group_name = "myautoaccount_rgname"
  account_name        = "myautoaccount_rgname"
  value               = "myvalue"
  encrypted           = true
  description         = "mydescription"
}
  1. Data resource : azurerm_automation_variable
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}"
}

References

Vendor blog post or documentation

microsof2 new-data-source new-resource servicautomation

All 8 comments

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:

  • [x] Implements new resource azurerm_automation_string_variable
  • [ ] ~Implements new resource azurerm_automation_null_variable~
  • [x] Implements new resource azurerm_automation_integer_variable
  • [x] Implements new resource azurerm_automation_bool_variable
  • [x] Implements new resource azurerm_automation_datetime_variable
  • [x] Implements new data-source azurerm_automation_string_variable
  • [ ] ~Implements new data-source azurerm_automation_null_variable~
  • [x] Implements new data-source azurerm_automation_integer_variable
  • [x] Implements new data-source azurerm_automation_bool_variable
  • [x] Implements new data-source azurerm_automation_datetime_variable

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?

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!

Was this page helpful?
0 / 5 - 0 ratings