Use -Mail for test resources local user lookup to support TME#9529
Conversation
|
The following pipelines have been queued for testing: |
|
The following pipelines have been queued for testing: |
724b9bb to
0cda589
Compare
|
The following pipelines have been queued for testing: |
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#9529 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>
…9529) * Use -Mail for test resources local user lookup to support TME * Auto-select TME subscription based on user context
For TME accounts, the
-UserPrincipalNamedoes not match the email (e.g.foobar@microsoft.com) and is instead likefoobar_microsoft.com#EXT#@<tenant>), so the local user id/oid lookup is broken for TME testing. Using-Mailworks as the value is the same across tenants.So for local TME testing, one can do:
At a certain point we will switch the default off playground and the
-Subscriptionoverride won't be necessary, but we'll have to add more UX handling to help people make sure they are on the right az context.CC @catalinaperalta