Code Monkey home page Code Monkey logo

Comments (14)

alexweininger avatar alexweininger commented on June 6, 2024 2

Sorry about this, we've recently updated the extensions and the Azure Resources extension to use the built-in VS Code Microsoft authentication. Learn more about this move in the Azure Resources v0.8.0 release notes.

From now on, you can sign out like so:
image

We will release an update soon to Azure Account that adds a note to the readme alerting users of this change.

from vscode-azure-account.

alexweininger avatar alexweininger commented on June 6, 2024 2

@zendu I think I found a solution. You can sign in to both accounts by calling the "Sign In" command from the command palette. Make sure it's the command contributed by the Azure Resources extension with the id azureResourceGroups.logIn.

image

From this menu select "Sign in to another account"
Screenshot 2023-12-11 at 9 16 45 AM

Once finished, you will have two accounts added. And you will be able to access the subscriptions on the second account.
Screenshot 2023-12-11 at 9 05 41 AM

from vscode-azure-account.

pedrojunqueira avatar pedrojunqueira commented on June 6, 2024 1

The above workaround worked

from vscode-azure-account.

mbudney-dbrg avatar mbudney-dbrg commented on June 6, 2024

I'm having the same issue on Mac. I accidentally signed in with the wrong work account and I can no longer access subscriptions, as shown under RESOURECES, related to my other work account.

  • Azure: Sign Out (Does nothing)
  • Azure: Sign In (Can sign in to either tenant)
  • Azure: Select Tenant (Fails given it's trying to use the wrong account)
  • Azure: Select Subscriptions (Show the correct subscriptions on the command, but does not update in VS Code)

Are there any workarounds to clear the sign in?

from vscode-azure-account.

mbudney-dbrg avatar mbudney-dbrg commented on June 6, 2024

Thanks for the response, unfortunately, that doesn't work either. I can only sign out on the account I want to keep.

The second work account is listed in the profile section twice. I can sign out of one of the duplicates. But as soon as I try to sign out of the other duplicate, they both come back.

The only difference I can see is with the case on my email address.

Also, given some time the account will show duplicated again.

image

from vscode-azure-account.

mbudney-dbrg avatar mbudney-dbrg commented on June 6, 2024

Just an update, I was able to clear the account from VS Code by revoking all my sessions from AAD.

I can now get the correct subscriptions under resources.

from vscode-azure-account.

alexweininger avatar alexweininger commented on June 6, 2024

Just an update, I was able to clear the account from VS Code by revoking all my sessions from AAD.

I can now get the correct subscriptions under resources.

Thanks for the update and I'm glad you got it working. If it happens again let us know and open a new issue.

from vscode-azure-account.

zendu avatar zendu commented on June 6, 2024

@alexweininger , I have 2 work accounts. One is used for regular work - that I use to sync settings - and other one for Azure resources. I don't see any way to add another account in VS Code authentication. Signing out and singing in every time I need to work is not feasible.

from vscode-azure-account.

alexweininger avatar alexweininger commented on June 6, 2024

@zendu

I have 2 work accounts. One is used for regular work - that I use to sync settings - and other one for Azure resources. I don't see any way to add another account in VS Code authentication. Signing out and singing in every time I need to work is not feasible.

This is a very valid scenario that we probably need to support. I will look into any workarounds for you and if I can't find any, we will need to add support for multiple accounts.

from vscode-azure-account.

TomasCaruso10 avatar TomasCaruso10 commented on June 6, 2024

having the same issue, i try to logour with the signout button, with the comand pallete, with the console, and finally uninstalling the extension.
I Still having the same account on mi visual studio code. im getting out of my mind

from vscode-azure-account.

mbudney-dbrg avatar mbudney-dbrg commented on June 6, 2024

having the same issue, i try to logour with the signout button, with the comand pallete, with the console, and finally uninstalling the extension. I Still having the same account on mi visual studio code. im getting out of my mind

Do you have an Entra Admin you can reach out to? They can revoke all your sign-ins, which will clear out that problem. Luckily, I was the admin in the directory I had an issue with.

The only downside is you'll need to re-authenticate everywhere for that account.

from vscode-azure-account.

alexweininger avatar alexweininger commented on June 6, 2024

having the same issue, i try to logour with the signout button, with the comand pallete, with the console, and finally uninstalling the extension. I Still having the same account on mi visual studio code. im getting out of my mind

@TomasCaruso10 did you try the steps in this comment for how to sign out?

If you could record a video, that will help me diagnose your problem.

from vscode-azure-account.

TomasCaruso10 avatar TomasCaruso10 commented on June 6, 2024

After trying many times, finally i managed to log out from my windows computer, and that kind of “temporaly” solve the problem.
After that i spend 6 hours trying to deploy the function to azure, no way to do it..
The deploymant failed 90% of the time, and when it deployed succesfully, trigers wont be found.
No way to deploy it using azure cli either.
I moved the project to azure container apps :/

from vscode-azure-account.

longtimedeveloper avatar longtimedeveloper commented on June 6, 2024

Please update the extension, removing the commands that do not work. I spent hours before finding this issue.

Or if the non-working command is invoked, then show a dialog.

Thank you!

from vscode-azure-account.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.