-
Notifications
You must be signed in to change notification settings - Fork 906
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
Azure Account adding not working #9885
Comments
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:
|
Hey @waldyd, could you please see if adding an account works on the latest insiders build? https://github.com/microsoft/azuredatastudio#try-out-the-latest-insiders-build-from-master |
Yes @aaomidi . It is working for the Latest Windows User Insider version. |
Thanks! Then this problem should be fixed for next release. |
@aaomidi but when trying to connect. This was prompted: |
Hmm, that's weird. Does it repro 100% of the time? Any errors in the developer console? Help -> Toggle Developer Tools |
Yes. It was reproduced several times. Here the developer console errors are:
Then while trying to refresh the credentials:
|
Thank you this is extremely useful to investigate. |
@waldyd It seems like your issue is something to do with how your windows is setup. Azure Data Studio uses Windows Credential Manager to store authentication tokens. This is technically the expected/secure way for us to store authentication tokens. I think there is an argument to be made for us to enable flat-file storage for users like yourself that may have a stricter domain configuration, but I'm not entirely sure if that's wise as these tokens essentially identify you to the Azure service. I recommend looking up the error you've received "A specified logon session does not exist. It may already have been terminated & Credential Manager", and you'll find a few threads that talk about that same issue. If you look at your Local Group Policy Editor (Win+R, gpedit.msc) the following setting might be switched on to "Enabled": This is likely blocking ADS to store credentials there. |
Hi @aaomidi . That policy was disabled in my case: Also, in my case, the browser is managed by my organization |
@waldyd If it's enabled it wouldn't work I think. Can you try to use ADS on another device and see if you can repro this? |
@magnusbratt We've published a new insiders build with more debug output, can you try to add your account on the latest version of ADS insiders? The developer logs should contain a lot more info. |
Whoops didn't mean to close this issue. Let's wait for the insiders build tomorrow and go over this. Thank you so much for helping me debug this @magnusbratt :) |
Could you please share your console either way? Would still be helpful :) |
Oh so it lists the databases, just doesn't connect to them right? |
@magnusbratt Alright that's a whole different issue. Could you try making yourself the admin on that server on azure portal. Open the SQL Database on Azure Portal, and add your account as the Active Directory admin. |
@aaomidi Is it OK to continue in this thread, or do you want me to create a new issue? I am already a member of the Active Directory group that is admin of the server. |
@aaomidi FYI: Today I updated ADZ Insiders on my Mac and it now works to sign in with my AAD account and access the database servers and databases I have access to. It still does not work with the non-insider build, but I assume that is a matter of time. I have also tested the latest insiders build on my PC and it works just as well. Thanks for developing great software! |
This is still an issue for me with Azure Insiders 1.18.0 build. Trying to connect to postgres. ERR Error: Failed to get Azure account token for connection |
Insiders is unfortunately a little broken at the moment. I would suggest sticking to the release branch. If this issue is specific to PostgreSQL, I would recommend opening another issue. |
Wasn't working in release which is why I tried insiders. |
So since the original issue is fixed, I'll be closing this issue. Please definitely open a new issue if you are seeing any issues with AzureMFA. |
Azure Data Studio is not providing much detailed feedback, it just fails. Using Azure Data Studio Version: 1.42.0 (Universal) on MacBook Pro with MacOS Ventura Version 13.2.1 (22D68) We recently changed from SQL Server login, to Azure Active Directory authentication, and I haven't been able to log in since, whether by "Connection" or "Add Account" or any way. I even uninstalled & reinstalled, cleared settings.json down to just the two brackets and restarted Azure Data Studio - nothing works. |
Please find this related issue and recommendation: #22227 (comment) |
That recommendation got me going! Thanks! |
Steps to Reproduce:
1.Try to Sign in to Azure
2. Click Add an Account:
The text was updated successfully, but these errors were encountered: