Azure / Azure/azure-dev

AzureDeveloperCredential: handling multiple tenant IDs

Open
#4,293 7 comments 2 reactions 3 assignees Claimed by @kristenwomack View on GitHub
area/auth area/docs enhancement
Dominant language
Go
Stars
569
Forks
364
Avg merge
2d 19h
Merged PRs (30d)
136

Description

We need to publish documentation around working with the AzureDeveloperCredential, specially for multi-tenant cases.

Folks should have an easy way to understand what to expect when using the AzureDeveloperCredential from their applications; depending on the login they did for azd.

Some questions to be documented:
- I logged in azd using `azd auth login --tenant-id XX`. Should I expect getting tokens for tenant XX when running `azd auth token -o json` ? [XX might or might not be the user's home tenant]
- If my account has access to tenant A, B and C and I have one azd project for each tenant in different folders, does azd knows how to pick the right tenant when using the AzureDeveloperCredential?

This issue can be used to let folks to bring more questions and improve docs around a FAQ

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.