-
Notifications
You must be signed in to change notification settings - Fork 300
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
Bug Fix for US Gov cloud current issue #936
Conversation
Moved to hamilton SDK version 0.52.0, which had a breaking change on DirectoryObject.ID
There was a problem hiding this 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! 🚀
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! |
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. |
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