问题
I'm trying to log into an Azure SQL server from SSMS using my Azure active directory account. I've followed this guide: Configure and manage Azure Active Directory authentication with SQL
I've added my account as an admin:
And my account also shows up as the Active Directory admin in the properties of the SQL database:
Then, I try to log in with SSMS, with Active Directory authentication:
I login with my account and get the MFA notification, but after that I get the following error:
Any tips are welcome.
回答1:
Which SSMS version you are using?
If you are using SSMS 17.9, try specifying the db name and set AD domain in Options
-> Connection Properties
.
Congratulations that the error have be solved by this.
Hope this helps.
回答2:
This issue may be related to the Active Directory AD Syncing options. Maybe in your environment AD is not syncing passwords into the tenant. This prevents AD Integration Authentication, AD Universal Authentication with MFA and AD Password Authentication. The only authentication that works in this instance is AD Universal Authentication (no MFA).
来源:https://stackoverflow.com/questions/57587687/azure-sql-server-login-failed-for-user-nt-authority-anonymous-login