-
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
azurerm_application_insights data resource #2623
Comments
hey @inkel Thanks for opening this issue :)
We've not got (scheduled) plans to work on this but I'd be 👍 for this if you'd like to send a PR? :)
Based on the API call I believe we should be able to just require the Application Insights name and the Resource Group Name (and not the location) - but that sounds good to me 👍 Thanks! |
Hey @tombuildsstuff, I'll gladly work on this! I'll fire up my editor and start coding 😉 Yup, it would seem like |
This has been implemented in #2625, so I guess it's safe to close this one. |
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! |
Community Note
Description
Hi maintainers, happy new year, and thanks for all your efforts in maintaining this provider.
In the past I've sent a PR (#2463) to add the new
azurerm_virtual_machine
data resource. For the same project I'm working on, I'm kind of in need of having anazurerm_application_insights
data resource too, are you considering adding it yourselves to the next release or should I send a PR?As in #2463 the needs arise from wanting to use an Application Insights instrumentation key in another resource (
azurerm_app_service
environment settings). The infra in this project is managed by different teams, and the App Insights bucket I'm trying to read its instrumentation key from it's already created. Now, one possible solution could be to use aazurerm_application_insights
on my App Service Terraform definition and thenterraform import
the existing resource; sadly this won't scale as the App Insights bucket is being currently managed by hand by another team.My proposal would be to add a new
azurerm_application_insights
data resource that let me access the instrumentation key by searching for the App Insights bucket name, resource group and location (this last property I'm not sure if it's required).Thanks.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: