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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
markcabantog
Helper I
Helper I

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

v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.