_This issue was originally opened by @andreacassioli as hashicorp/terraform#20768. It was migrated here as a result of the provider split. The original body of the issue is below._
...
Setup Continuous Export in ApplicationInsight to blob storage
https://docs.microsoft.com/en-us/azure/azure-monitor/app/export-telemetry
The blob storage should have been created using terraform.
It is available via PowerShell
Extend azurerm_application_insights to pass suitable options as JSON as in power shell script.
hi @andreacassioli
Thanks for opening this issue :)
Taking a quick look into this it appears there's support for this in the Azure SDK for Go and that this would probably make sense as a new resource, rather than bundled within the Application Insights resource, since it appears it's possible to have multiple export configurations?
Thanks!
Hi @tombuildsstuff thanks for the quick feedback!
You can indeed have multiple configurations, each one possibly exporting to a different kind of sink. If we could terraform this, that would be terrific!
I've been looking into this and am currently waiting for a response to https://github.com/Azure/azure-sdk-for-go/issues/4745.
It looks like obtaining the Export ID on continuous export creation is not yet supported in the Azure API or Go SDK. Without this, we would have to resort to some potentially brittle workarounds to implement this resource.
I've submitted a suggestion to the Azure issue tracker: https://feedback.azure.com/forums/357324-application-insights/suggestions/37643014-return-export-id-on-application-insights-continuou. If this is done, I can finish implementing the resource.
Hi,
Can this be achieved through terraform instead of Powershell
Thanks
Most helpful comment
It looks like obtaining the Export ID on continuous export creation is not yet supported in the Azure API or Go SDK. Without this, we would have to resort to some potentially brittle workarounds to implement this resource.
I've submitted a suggestion to the Azure issue tracker: https://feedback.azure.com/forums/357324-application-insights/suggestions/37643014-return-export-id-on-application-insights-continuou. If this is done, I can finish implementing the resource.