-
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
Implement Application Insights API Key management #2547
Comments
Working on a PR right now. |
After studying the Azure App Insights API and while implementing the feature, I reckon it would be more natural and future ready to expose raw
This avoids to hard code combinations that may change in the future. |
@pdecat thanks for taking a look into this :) Whilst it's a deviation from the API - I'd suggest the field names would be better as |
Submitted #2556 |
The PR works well. Thanks @pdecat ! One thing that bothers me is that if I only ask for the I haven't found any documentation on this subject. My code
First apply
Second apply
@tombuildsstuff Any idea on how to handle this ? |
Maybe with a The supported actions for Application Insights seem to be listed at https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftinsights And here's an example from the REST API specification: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/APIKeysGet.json |
@BzSpi are those permissions still present if you apply the changes? If not, we should just be able to get the Create method to call the Update method to ensure the permissions are valid |
There is no Update method on API keys (hence the "forces new resource"): https://github.com/Azure/azure-sdk-for-go/blob/master/services/appinsights/mgmt/2015-05-01/insights/apikeys.go#L29 It seems the Azure API is implicitly translating a request for read permission |
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! |
Community Note
Description
We should have the availability to create an API Key in Terraform.
New or Affected Resource(s)
Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: