-
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
Support for workspace mode in application_insights_resource #12583
Conversation
Anyone picking up a review on this - I'd appreciate some eyes on this commit RetentionInDays became a read only property in this version of the insights API, so we needed a way of setting the value after creating the resource Am using the ResourceClient against hardcoded API Value - better way to do this, or is this acceptable? |
Hi @dylanmorley, thanks for working on this long awaited feature. It is unfortunate that the However, at first glance everything else looks good if you can take a look at the failed checks? I'll get back to you on the retention workaround. |
@dylanmorley Unfortunately hacking around this with the resources client isn't an approach that we're comfortable with. I understand this feature has been outstanding for a long time but it's up to the API team to maintain compatibility and not break it in this way. Can you raise an issue upstream on https://github.com/Azure/azure-rest-api-specs and link it here? Once that's resolved, this should be in a position to be mergeable. Thanks! Until this is resolved by the service team, I'm going to close this to help us focus on active unblocked PRs. Once the retention property is fixed and made writable again, we can reopen it with a view to merging. |
OK thanks @manicminer - wasn't that comfortable with it either, but wanted an opinion as data retention as an option is going to deprecate when Microsoft make Workspace mode the default and also deprecate 'classic mode'. Is there any general guidance on handling breaking changes / deprecations in the Terraform Azure provider? It was removed as an option on the ARM API which is why I presume it became read-only here I'm interested to understand the things that need to change in order to use a standard approach (Azure API / Go SDK?). I'll fix failed checks in the meantime. |
@dylanmorley Another option might be to implement this in a new resource / data source, for example At the same time, the existing (classic) resource WDYT? |
@manicminer upstream dependencies fixed & I've updated this branch with the latest - can we reopen this PR pls? |
if you can't re-open probably best to just create a new one |
Opened #12818 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
As per issue #7667, updating the application_insights_resource to enable support of workspace mode, available with upgrade of the Go SDK at v55.5 via PR #12435.