Skip to content
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

Workaround: auto-retry when looking for existing service principals, assuming that one is likely to exist when use_existing = true #1025

Merged

Conversation

manicminer
Copy link
Contributor

When trying to adopt an existing service principal, through use of use_existing = true, that was very recently created - for example by instantiating an application template - perform retries when looking up the existing service principal to try and defeat eventual consistency. This is necessary because the 'existing' check requires a List operation with a filter, rather than a typical Get operation.

@manicminer manicminer added this to the v2.35.0 milestone Feb 21, 2023
@manicminer manicminer requested a review from a team February 21, 2023 11:10
@manicminer manicminer force-pushed the bugfix/existing-service-principal-consistency-workaround branch from 5d9e699 to a4434c2 Compare February 21, 2023 11:12
…assuming that one is likely to exist when `use_existing = true`
@manicminer manicminer force-pushed the bugfix/existing-service-principal-consistency-workaround branch from a4434c2 to 2170d72 Compare February 21, 2023 11:19
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @manicminer LGTM 🦁

@manicminer
Copy link
Contributor Author

Test results

Screenshot 2023-02-21 at 17 37 50

manicminer added a commit that referenced this pull request Feb 21, 2023
@manicminer manicminer merged commit adc8bc5 into main Feb 21, 2023
@manicminer manicminer deleted the bugfix/existing-service-principal-consistency-workaround branch February 21, 2023 15:39
@github-actions
Copy link

This functionality has been released in v2.35.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants