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

Implement data source for azurerm_automation_dsc_configuration_metadata #2162

Closed
bastienfrancheteau opened this issue Oct 26, 2018 · 4 comments

Comments

@bastienfrancheteau
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

When registering a VM as a DSC node, the Automation Account's key and DSC Registration URL values are required. These cannot be retrieved in Terraform. Creating an azurerm_automation_dsc_configuration_metadata module that returns these 2 values would enable us to dynamically register Azure VMs as DSC nodes.

Suggested name for new data source: azurerm_automation_dsc_configuration_metadata

  • azurerm_automation_dsc_configuration

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

References

  • #0000
@whytoe
Copy link
Contributor

whytoe commented Aug 19, 2019

The resource already supports outputting the Primary Key/DSC Server Endpoint
https://www.terraform.io/docs/providers/azurerm/r/automation_account.html

Is there a blocker for this? @tombuildsstuff

@whytoe
Copy link
Contributor

whytoe commented Oct 25, 2019

@bastienfrancheteau were you able to find another solution other than use powershell?

@tombuildsstuff does the GoSDK support this now, its been almost a year

It is available in powershell

PS C:\WINDOWS\system32> $data = Get-AzAutomationRegistrationInfo -ResourceGroupName resourcegroup -AutomationAccountName AutomationAccount

ResourceGroupName     : resourcegroup
AutomationAccountName : AutomationAccount
PrimaryKey            : PrimaryKey            
SecondaryKey          : SecondaryKey
Endpoint              : https://cc-agentservice-prod-1.azure-automation.net/accounts/guid

@mbfrahry
Copy link
Member

It looks like this issue is resolved through the #4740 that @whytoe created. That should go out in 1.37.0 of the provider. Feel free to create a new issue if more work needs to be done here.

@ghost
Copy link

ghost commented Nov 30, 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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants