Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Application Insights Continuous Export: How to get Export ID on create? #4745
What I am trying to do
I want to use the Azure Go SDK to create a Continuous Export configuration for an existing Application Insights component. I need to save the Export ID on creation so I can use it later.
What I expect
When I call
When I call
See the signature of the
Since I do not know which member of the returned list is the export configuration I just created, I am unable to save the Export ID.
Experimenting using the Azure Portal shows the REST API used in that webapp behaves in a similar way.
When I create an export configuration (and one already exists), the request payload for the API request is:
and the response is:
The response contains both export configurations, not just the one I just created.
Why I think this is a bug
It may be possible to guess which of the returned array of export configurations is the one I just created, based on the order of the array, or the
However, this is not robust, as it is possible that another
Hello! I spoke with the service team about this, unfortunately there is no support for this right now and no real workaround :(. Their suggestion is to open an issue on https://feedback.azure.com/forums/357324-application-insights to track this. Please let me know if you have further questions.
Thank you. I've created an issue: https://feedback.azure.com/forums/357324-application-insights/suggestions/37643014-return-export-id-on-application-insights-continuou