Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: resource azurerm_automation_variable #1312

Closed
JamesDLD opened this issue May 29, 2018 · 8 comments · Fixed by #3310
Closed

Feature Request: resource azurerm_automation_variable #1312

JamesDLD opened this issue May 29, 2018 · 8 comments · Fixed by #3310

Comments

@JamesDLD
Copy link

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

@JunyiYi
Copy link

JunyiYi commented Jan 31, 2019

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:

  • Implements new resource azurerm_automation_string_variable
  • Implements new resource azurerm_automation_null_variable
  • Implements new resource azurerm_automation_integer_variable
  • Implements new resource azurerm_automation_bool_variable
  • Implements new resource azurerm_automation_datetime_variable
  • Implements new data-source azurerm_automation_string_variable
  • Implements new data-source azurerm_automation_null_variable
  • Implements new data-source azurerm_automation_integer_variable
  • Implements new data-source azurerm_automation_bool_variable
  • Implements new data-source azurerm_automation_datetime_variable

@laughtonsm
Copy link

Any news on this guys? Just wondering when this feature is going to be included in the provider

@odee30
Copy link

odee30 commented Apr 19, 2019

This feature would be really useful.. Any ideas what version of the provider this will be released with?

@WodansSon
Copy link
Collaborator

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.

@odee30
Copy link

odee30 commented May 9, 2019

Thanks @jeffreyCline . Good news. Really appreciate the update.

@laughtonsm
Copy link

laughtonsm commented May 9, 2019 via email

@tombuildsstuff tombuildsstuff added this to the v1.28.0 milestone May 10, 2019
@ghost
Copy link

ghost commented May 17, 2019

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 ...

@ghost
Copy link

ghost commented Jun 10, 2019

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.