fix: allow aad group to be recreated when prevent_duplicate_names is true
This PR replicates the bug as described in #697
It also shows a potential way to overcome the bug, but there may be a better way to achieve it.
Hi @josh-barker, sorry for the delay in reviewing this. Thanks for the implementation, I think this is on the right track but I'm concerned about making decisions based on the RawState as this could have unintended side effects. You're right, there are no Plugin SDK helpers that can expose this right now, but I think the best course would be to send this upstream so I'll work on a PR for https://github.com/hashicorp/terraform-plugin-sdk to expose whether a diff involves a ForceNew - I think this is possible based on the data held in the raw diff.
Hey @manicminer, no worries. 👍🏻 Yep, that sounds like a great idea. :-)
Is there any update on the upstream change or this PR?
Superceded by #980
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. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.