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

Ability to switch to a different directory for Azure account #9213

Open
MuyangAmigo opened this issue Jul 4, 2023 · 3 comments
Open

Ability to switch to a different directory for Azure account #9213

MuyangAmigo opened this issue Jul 4, 2023 · 3 comments
Assignees
Labels
feature-request The issue is a feature request investigating TA:Infra Team Area: Infra

Comments

@MuyangAmigo
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
My Azure account (xxx@xxx.com) has multiple directories associated with it. And the subscription I intend to use is not under the default directory. I wasn't sure how to switch directories in Teams Toolkit account section so I could find the subscription I want to use.

Describe the solution you'd like

  1. Teams Toolkit can allow me to switch to different directories.
  2. Teams Toolkit can take me to this doc: https://learn.microsoft.com/en-us/answers/questions/382060/azure-vs-code-no-subscriptions-were-found that explains how to configure different tenant for Azure account extension used in Teams Toolkit.

Describe alternatives you've considered
This doc: https://learn.microsoft.com/en-us/answers/questions/382060/azure-vs-code-no-subscriptions-were-found was an alternative solution that explains how to config Azure account extension for a specific tenant / directory.

Additional context
Add any other context or screenshots about the feature request here.

@ghost
Copy link

ghost commented Jul 4, 2023

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

@adashen adashen added investigating feature-request The issue is a feature request TA:Infra Team Area: Infra labels Jul 5, 2023
@nicefella
Copy link

i am experiencing this very same situation here. My Azure account has two different tenants and my subscription is on the second tenant so as soon as i run the Provision process in my Teams Toolkit it gives me an error which is "We couldn't find a subscription."
It seems it is just looking in the default tenant and this results in not finding any subscription.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jul 9, 2024
@MuyangAmigo
Copy link
Collaborator Author

i am experiencing this very same situation here. My Azure account has two different tenants and my subscription is on the second tenant so as soon as i run the Provision process in my Teams Toolkit it gives me an error which is "We couldn't find a subscription." It seems it is just looking in the default tenant and this results in not finding any subscription.

There's a workaround on this, you could switch directory in Azure Portal: https://learn.microsoft.com/en-us/azure/devtest/offer/how-to-change-directory-tenants-visual-studio-azure and Teams Toolkit will pick the default directory. Hope this helps.

@MuyangAmigo MuyangAmigo removed the needs attention This issue needs the attention of a contributor. label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request The issue is a feature request investigating TA:Infra Team Area: Infra
Projects
None yet
Development

No branches or pull requests

4 participants