-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add the property 'hybrid_registration_url' property to 'azurerm_automation_account' resource and data #18277
Comments
Hi, @harcamSpark thanks for your feedback. do you have any documents about this hybrid_url = replace("${azurerm_automation_account.example.dsc_server_endpoint}", ".agentsvc.", ".jrds.")
hybrid_url2 = replace("${local.hybrid_url}", "/\\/accounts\\//", "/automationAccounts/") |
That compute logic of the hybrid_url and hybrid_url2, there is no documentation for, that was my own custom workaround to get a hyrid registration url, cause it seems to always use the same uuid as the DSC endpoint, just with different bits in the URI around it. As for documentation of the hybrid_registration_url itself, it seems to already be in the go-azure-sdk at this point in the code I think? |
Or did you mean the REST API docs, in which case it's this one here - the "properties.automationHybridServiceURL" property |
it looks like not an officially supported property in the automation account. so it's a bit confusing for |
sorry, I think you might be misunderstanding... the "hybrid_url" logic I mentioned as a workaround, you are indeed correct, not official. I use the "dsc_endpoint" property and do a couple of replace functions on it using locals in terraform code, as a stand-in until the hybrid_registration_url property is added to azurerm. I'm not saying we should add that code to azurerm. That is just there for anyone else who looks up this issue, needing to do the same thing. The hybrid_registration_url property on the automation account looks to me like it's an official property though (and doesn't use that logic) - it's in the response when I do a manual 'az rest' command and query the Azure Management API:
|
thanks for your explanation. now I got your point. this property comes in the version |
dang that was fast dude, nice work :-) |
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. |
Is there an existing issue for this?
Community Note
Description
Now that the resources for azurerm_automation_hybrid_runbook_worker and azurerm_automation_hybrid_runbook_worker_group have been added to azurerm provider, it would be handy to have the hybrid registration url as a property from the azurerm_automation_account to use to install the VM extension.
Currently I have a workaround of mangling the DSC endpoint URL with some replace()s, like so :
New or Affected Resource(s)/Data Source(s)
azurerm_automation_account
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: