Skip to main content

Power BI

Completed

SQL Azure connector with Azure AD Auth

Vote (435) Share
Neil Palmer's profile image

Neil Palmer on 12 Oct 2015 18:02:41

Update the SQL Azure connector to use Azure AD Auth. This will allow row level security in the database to be used with PowerBI.

It would be great to have PowerBI pass through user credentials to the database so that data can be kept secure.

Administrator on 10 Jan 2018 02:01:06

This feature has shipped in the January 2018 update for Power BI Desktop. Please refer to the official announcement for more details: https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-january-2018-feature-summary/#AADauth

Comments (62)
Neil Palmer's profile image Profile Picture

41f3dba9 6753-4bc4-b6d7-7070ae7ae164 on 05 Jul 2020 23:02:45

RE: SQL Azure connector with Azure AD Auth

Does Power BI Desktop/Azure SQL DB work with Integrated AD Authentication yet? There's a lot of conflicting information out there and we have a project to complete. Many thanks.

Neil Palmer's profile image Profile Picture

02d912eb 01cd-49db-bbf5-7c8fd34a8fc2 on 05 Jul 2020 23:01:48

RE: SQL Azure connector with Azure AD Auth

lifesaver:
https://blogs.msdn.microsoft.com/azuresqldbsupport/2017/04/06/connect-from-power-bi-to-azure-sql-database-using-aad-authentication/

I have tested this, it is excruciating. It is basically Power Query. You have the same issues connecting to Azure SQL DB in Excel. I love the idea of Azure SQL Database, no VM needed. However, connectivity, again, is excruciating. This isn't a solution, but a work around for those that need it. You need the flipping ODBC Driver, but it works if you have a newer install of Windows, SQL etc...

ODBC (for AD PW Auth; must have ODBC Drive 13 for SQL Server)
Driver={ODBC Driver 13 for SQL Server};Server=;Database=;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword

OLEDB (SQL Server Authentication Only):
provider=SQLNCLI11.1;initial catalog=;data source=;auto translate=False

Also, for SSMS, use Azure AD PASSWORD AUTHENTICATION! Good Luck!

Neil Palmer's profile image Profile Picture

7d3e82c2 0200-4b5b-817b-df747696db9e on 05 Jul 2020 23:00:58

RE: SQL Azure connector with Azure AD Auth

Can we get an update on this feature?

Neil Palmer's profile image Profile Picture

287499e5 d822-4ed1-9885-5886a36ef8c0 on 05 Jul 2020 23:00:09

RE: SQL Azure connector with Azure AD Auth

Pass through AzureAD credentials are a must to support direct query database RLS with views that protect the data using the original_login () TSQL function. It allows us to build centralized robust RLS that reside on the server itself.

Implementing this in PowerBI is not what we want to in an enterprise setup.

Neil Palmer's profile image Profile Picture

c57a3179 34d7-4ef4-a308-5710d4040c08 on 05 Jul 2020 23:00:01

RE: SQL Azure connector with Azure AD Auth

This would also allow using DirectQuery (and consequently live refresh), something that we miss when using ODBC.

Neil Palmer's profile image Profile Picture

f0926dd8 97f0-403b-b587-488dcf2471f3 on 05 Jul 2020 22:59:06

RE: SQL Azure connector with Azure AD Auth

Is it implemented in https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-september-2017-feature-summary/ ?

Neil Palmer's profile image Profile Picture

efdd3d18 d6ce-4610-8bdd-bd66a316f7f9 on 05 Jul 2020 22:56:25

RE: SQL Azure connector with Azure AD Auth

We would very much like to see Power BI Desktop support AAD for authentication to Azure SQL Database.

Neil Palmer's profile image Profile Picture

c68c3ced a692-44ad-aa65-0a8ddccd40d7 on 05 Jul 2020 22:55:56

RE: SQL Azure connector with Azure AD Auth

Do you even try to use your own products? How is this feature not in yet?

Neil Palmer's profile image Profile Picture

079c460f 3741-4a20-8918-09aa2dae2093 on 05 Jul 2020 22:55:29

RE: SQL Azure connector with Azure AD Auth

No OAuth2, no Azure AD Auth - maybe time to look at viability of Power BI for secure self-service BI!

Neil Palmer's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 22:55:22

RE: SQL Azure connector with Azure AD Auth

must have