Skip to content

There is no "Sign in to Azure..." command under the "Accounts & Tenants" section when no accounts are signed in #1044

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

Open
v-chenzha opened this issue Feb 13, 2025 · 4 comments
Labels
AT-CTI Created by CTI team

Comments

@v-chenzha
Copy link

v-chenzha commented Feb 13, 2025

OS: All
Build Version: 20250213.1

Repro Steps:

  1. Make sure the account signed out.
  2. Open the "Accounts & Tenants" section.

Expect:
There is a "Sign in to Azure..." command under the "Accounts & Tenants" section.
Image

Actual:
There is no "Sign in to Azure..." command under the "Accounts & Tenants" section.
Image

More Info:

  1. Refresh can fix this issue.
  2. This issue doesn't reproduce when setting "Microsoft-authentication: Implementation" to "classic".
@v-chenzha v-chenzha added the AT-CTI Created by CTI team label Feb 13, 2025
@v-chenzha v-chenzha changed the title [Suggestion] It would be better to display a message indicating no signed-in accounts or provide an option to log in under the "Accounts & Tenants" section when no accounts are signed in There is no "Sign in to Azure..." command under the "Accounts & Tenants" section when no accounts are signed in Feb 13, 2025
@linkmckinney
Copy link

I get the constant you are not logged in message.

Steps to reproduce:

  1. Click + in Accounts & Tenants from the Azure Resources Extension
  2. Click the Allow button when you get the popup "**The extension 'Azure Resources wants to sign in using Microsoft. **"
    This drops down my email accounts that I can sign into at the top in VS code.
  3. I select my main account and immediately get this message in the lower right-hand corner.

Image

I have rebooted, restarted, I have not uninstalled yet, that will be my next course of action.

@alexweininger
Copy link
Member

@linkmckinney as a workaround, you can set the "Microsoft-authentication: Implementation" setting to "classic". If this doesn't work please let me know.

@KelsonMartins
Copy link

KelsonMartins commented Mar 13, 2025

@alexweininger Your recommended workaround, did just the trick. Thank you. 😄

@alexweininger
Copy link
Member

There's also this fix that was suggested in this VS Code thread: microsoft/vscode#240307 (comment) which allows you to keep using the MSAL setting.

  • Delete the directory: %userprofile%\AppData\Local\Microsoft\IdentityCache
  • Try signing in with msal again

See here https://code.visualstudio.com/updates/v1_97#_microsoft-account-now-uses-msal-with-wam-support-on-windows for information on the new implementation. Keep in mind that the classic setting won't be around for much longer. If we can confirm that this is what's causing the issue then I encourage you to file an issue on the VS Code repo. https://github.com/microsoft/vscode/issues

Also there's a fix hopefully coming soon for this entire issue: microsoft/vscode#243290 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT-CTI Created by CTI team
Projects
None yet
Development

No branches or pull requests

4 participants