Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
JonAv
Microsoft Employee
Microsoft Employee

Can't connect to Azure SQL Database

I have a PowerBI file that used to work fine, but I had to rebuild my machine and now it can't connect to the SQL Azure database it needs to, and I don't understand why.  Here are a few datapoints:

  • I have owner access to the service/database
  • In the Azure portal, I've added my machine's IP address to the firewall exceptions list so it doesn't get blocked
  • On my machine, I can connect VS to the database and query it with no problem, using AD integrated authentication and my corp account
  • When I upload this file to run in PowerBI online, it is able to connect and query the database
  • I'm running the latest version of the PowerBI desktop
  • I have Microsoft PowerBI Desktop and Microsoft PowerBI Desktop (x64): Analysis Services Component added to the apps list that allows communication through the firewall on my machine
  • I've deleted all the connections using File->Options & Settings->Data Source Settings and tried to start over with establishing the connection.

But when I attempt to connect to the db in PowerBI, it tells me it couldn't authenticate with the credentials provider.  Looking at the diagnostric traces it has a bunch of errors with the comment: "Windows logins are not supported in this version of SQL Server", which seems to imply the problem is that I'm not using the right authentication mode, but I don't see anyway to set the authentication mode explicitly (to force it to use AAD authentication instead).

 

I ran into this problem once before, but I don't remember what I did that finally fixed it.  Any suggestions?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@JonAv,


Currently Power BI doesn’t support AAD authentication when connecting to Azure SQL Database, but it is possible to use AAD authentication when  using Microsoft ODBC Driver 13. For more detailed steps, please review the following blog.

https://blogs.msdn.microsoft.com/azuresqldbsupport/2017/04/06/connect-from-power-bi-to-azure-sql-dat... .

 


Regards,
Lydia Zhang

View solution in original post

2 REPLIES 2
markcabantog
Helper I
Helper I

Is there still no solution to connect directly without using ODBC?

Anonymous
Not applicable

@JonAv,


Currently Power BI doesn’t support AAD authentication when connecting to Azure SQL Database, but it is possible to use AAD authentication when  using Microsoft ODBC Driver 13. For more detailed steps, please review the following blog.

https://blogs.msdn.microsoft.com/azuresqldbsupport/2017/04/06/connect-from-power-bi-to-azure-sql-dat... .

 


Regards,
Lydia Zhang

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors