Dan English's BI Blog

Welcome to my random thoughts in regards to Business Intelligence, databases, and other technologies

Posts Tagged ‘sqlserver’

Power BI using Service Principal with Synapse SQL Pool with Shareable Cloud Connection

Posted by denglishbi on November 3, 2023

This is a bit overdue and a follow up to a few other posts I have regarding using Service Principal authentication with Power BI reports Power BI using Service Principal with Synapse SQL Pool and Power BI using Service Principal with Synapse Data Explorer (Kusto) Pool.

With the other two posts I did last year I had to use the SQL Server ODBC driver to get that to work and the big downside to that is that you need to use a gateway with that. Well in this case we are going to take a look at the new Shareable Cloud Connections that were announced earlier this year Streamlining cloud connection management for datasets, paginated reports, and other artifacts | Microsoft Power BI Blog | Microsoft Power BI

In the previous articles I already shared how to create the Service Principal account, so really the only thing to show here is the new connection you can create in the Power BI (Microsoft Fabric) service. Here is a link to the documentation that will walk you through this as well Create and share cloud data sources in the Power BI service (Preview) – Power BI | Microsoft Learn.

So in the service you click on the Settings gear icon in the top right and select Manage connections and gateways. From there you will click on the +New button in the top left and then configure your Cloud connection like such and you will see under the authentication method you can choose Service Principal!

configuration screenshot of the cloud connection for sql server using service principal.

Once you upload your report that is using the similar connection all you need to do is modify the dataset (semantic model) settings and adjust the reference from the personal cloud connection to the shareable cloud connection that you created which is using the Service Principal like in the following screenshot.

change the cloud connection setting from personal cloud connection to the shareable cloud connection using the service principal.

Once that is done you can go back and view your report and everything is good to go!

Power BI adventure works report using service principal connection.

And you can go ahead and do your refreshes just like you would normally:)

refresh history screenshot showing the on demand refresh that was successful using the shareable cloud connection.

And no more ODBC driver and no more gateway!!!

Posted in Power BI, SQL Server, Synapse | Tagged: , , , , | Leave a Comment »

 
Design a site like this with WordPress.com
Get started