Source user ID from graph api in TME#11896
Merged
benbp merged 1 commit intoAzure:mainfrom Aug 29, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR modifies the test resource provisioning script to handle user ID retrieval differently for TME (Test Management Environment) tenants versus corporate tenants. The change addresses conditional access policy restrictions that block Graph API calls in corporate tenants while allowing them in TME tenants.
- Updates user ID sourcing logic to use Graph API for TME tenants and fallback to context for corporate tenants
- Fixes a typo in a warning message
- Applies the same conditional logic in two different code sections
alzimmermsft
approved these changes
Aug 28, 2025
Collaborator
|
The following pipelines have been queued for testing: |
weshaggard
approved these changes
Aug 28, 2025
This was referenced Aug 29, 2025
azure-sdk
added a commit
to Azure/azure-sdk-for-js
that referenced
this pull request
Aug 29, 2025
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#11896 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
azure-sdk
added a commit
to Azure/azure-sdk-for-rust
that referenced
this pull request
Aug 29, 2025
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#11896 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My previous PR #11531 seemed to fix the issue only partially, but RBAC assignments with the user's home account ID did not appear to be working in TME. Apparently graph api calls still work in TME and I found a cmdlet that only requires
User.Readand notUser.ReadAll.CC @alzimmermsft