cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI - Databricks Integration using Service Principal

venkat-bodempud
New Contributor III

Hello Community,

We are able to connect to databricks(using Personal access token) from Power BI Desktop and we able to set up scheduling databricks notebook using DataFactory for every 10 minutes(as per our requirement). 

We want to avoid using the personal access token. What are all the alternatives and how service principal helps here?

Objective: We want avoid individual user credentials in the system.

I request the community the help us here.

Thanks

Venkat

4 REPLIES 4

Prabakar
Esteemed Contributor III
Esteemed Contributor III

You can use the token generated for the service principal and use it. As a security best practice, when authenticating with automated tools, systems, scripts, and apps, Databricks recommends you use access tokens belonging to service principals instead of workspace users. For more information, see Service principals for Azure Databricks automation.

https://docs.microsoft.com/en-us/azure/databricks//dev-tools/service-principals

Thanks Prabakar for your reply...

Hi Prabakar,

​What is the best practice here -

1. To develop the reports by connecting to Databricks using individual PATs.

2. Then, after deploying the report to PowerBI service, change the data source credentials to point to the PAT of the Service Principal so data import is done based on defined schedule.

3. PowerBI report users then need not be having Databricks accounts as the underlying service principal is fetching data for them.

Is my understanding correct?

Yelf
New Contributor III

Hey Prabakar,

Can you please share the best practice using service principals to authenticate using PowerBi, since Azure AD tokens have a lifetime of 1 hour. Do we need to constantly update data source credentials ?

Many thanks!

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.