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

Bug Fix for US Gov cloud current issue #936

Conversation

MarkDordoy
Copy link
Contributor

@MarkDordoy MarkDordoy commented Nov 29, 2022

Microsoft US Gov cloud has an issue with the application Template: instantiate API call. They are actively working on fixing the bug, but the fix is not expected until February 2023.

The bug is intermittent, however when it occurs you can end up with multiple app registrations and Service Principals, all with the same name. The bug under the hood shows itself in the form of a 504 status code (timeout) and the Azure Library (Hamilton) performs a retry. Eventually that 504 call will complete and you end up with Mutiple applications created. This bug does not exist on the beta API.

This PR will place anyone using the environment MsGraphUSGovL4Endpoint onto the beta endpoint just for the application templates client. The response model changes slightly going to beta so this PR also accommodates for this.

This PR required manicminer/hamilton#198 to be merged and released which has a breaking change regarding the DirectoryObject ID struct field. This has been replaced with a function of .ID() which returns the Id regardless of objectID or Id return response from the Graph API

@MarkDordoy MarkDordoy marked this pull request as draft November 29, 2022 14:17
Moved to hamilton SDK version 0.52.0, which had a breaking change on DirectoryObject.ID
@github-actions github-actions bot added size/XL and removed size/XS labels Nov 30, 2022
@MarkDordoy MarkDordoy marked this pull request as ready for review November 30, 2022 15:18
@manicminer manicminer added api-bug env/usgovernment Issue affects this environment labels Dec 1, 2022
Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @MarkDordoy, this LGTM! 🚀

@manicminer manicminer added this to the v2.31.0 milestone Dec 1, 2022
@manicminer manicminer merged commit 0689577 into hashicorp:main Dec 1, 2022
manicminer added a commit that referenced this pull request Dec 1, 2022
@github-actions
Copy link

github-actions bot commented Dec 1, 2022

This functionality has been released in v2.31.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

github-actions bot commented Jan 1, 2023

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 Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants