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

Teams Toolkit automatically logging into wring Azure account #13043

Open
wymersam opened this issue Jan 13, 2025 · 3 comments
Open

Teams Toolkit automatically logging into wring Azure account #13043

wymersam opened this issue Jan 13, 2025 · 3 comments
Assignees
Labels
*as-designed What is the designed behavior

Comments

@wymersam
Copy link

Describe the bug
When I install Teams Toolkit it is automatically logging into the wrong Azure account. There is no option for me to logout and when I click on the settings gear tool it just redirects me to Azure. I tried logging out here and it didn't fix the issue. In the past I was able to log in and out of my Azure accounts in Teams Toolkit but now I can't log in to the Azure account that I need for deployment.

To Reproduce
Steps to reproduce the behavior:

  1. Open VS Code and the Teams Toolkit extension
  2. Try to logout of current Azure account

Expected behavior
No option to logout of currently logged in Azure account.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jan 13, 2025
Copy link

👋 Hi @wymersam,

Thank you for reporting this issue! We want to let you know that:

⏱️ Our team will personally review your issue
🎯 You can expect a response within 2 business days

✨ This is an AI-generated initial response
🤖 AI-Generated Preliminary Analysis:

Based on your description, it seems like you're experiencing an issue where the Teams Toolkit automatically logs into the wrong Azure account, and you are unable to log out and switch to the correct account. Here are some steps and suggestions to resolve this issue:

  1. Reload/Restart VS Code:

    • Sometimes, simply reloading or restarting VS Code can resolve the issue. Close all instances of VS Code and then reopen it.
  2. Sign Out Using the 'Accounts' Sidebar:

    • The Azure sign-out option has moved to the 'Accounts' sidebar at the bottom left of VS Code. Follow these steps:
      1. Click on the 'Accounts' icon at the bottom left of VS Code.
      2. Sign out of your Azure account from there.
      3. Sign back in with the correct Azure account.
  3. Use the VS Code Command Palette:

    • Use the VS Code command palette to manage your Azure account sign-ins. You can do this by:
      1. Pressing Ctrl+Shift+P (or Cmd+Shift+P on macOS) to open the command palette.
      2. Typing Azure: Sign out and selecting it to sign out of your current Azure account.
      3. After signing out, use Azure: Sign in to sign in with the desired Azure account.
  4. Check for Proxy Interference:

    • Ensure that there are no proxies interfering with the sign-in process. Proxies can sometimes cause issues with authentication. For more information, you can refer to the Unable to Sign In While Using a Proxy section of the wiki.
  5. Enable and View Logs:

    • Enable logs to capture more detailed information about the issue. This can be done by following instructions in the Enable and View Logs section of the wiki.

If you continue to face issues, you can refer to additional troubleshooting steps or report the issue on the Teams Toolkit GitHub issues page.

By following these steps, you should be able to sign out of the incorrect Azure account and sign in with the correct one for your deployment. If the problem persists, consider providing more detailed feedback on the GitHub issues page to get further assistance.


Note: This is an automated first response generated by AI. A human team member will review your issue and provide a more detailed response soon. We appreciate your patience!

@wymersam
Copy link
Author

Thanks for your response.

I see these accounts but there is not way for me to logout of the second one (unselected). I want to use the first account (which is selected):


Greenshot 2025-01-13 14 01 32

@HuihuiWu-Microsoft
Copy link
Contributor

Hi @wymersam , the Azure sign-out entry has moved to the 'Accounts' sidebar at the bottom left of VS Code. Please click 'Accounts' and choose your signed in Azure account to sign out.

Image

@HuihuiWu-Microsoft HuihuiWu-Microsoft added *as-designed What is the designed behavior and removed needs attention This issue needs the attention of a contributor. labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*as-designed What is the designed behavior
Projects
None yet
Development

No branches or pull requests

2 participants