โ03-27-2023 10:19 AM
Hi all
I'm struggling to connect PowerBI service to a Databricks SQL Warehouse using a service principal.
I'm following mostly this guide.
I created a new app registration in the AAD and created a client secret for it.
Now I'm particularly struggling with the second step of adding the service principal to the Databricks account.
If I open the link accounts.azuredatabricks.net, I can select the correct workspace after authentication, but this only brings me to the welcome page of the Databricks workspace.
I can't find the "User management" page that is mentioned.
--> Where / how can I add the service principal to Databricks ?
Thanks for any help
โ04-12-2023 12:18 AM
In the end, once the Service Principal is properly authorized on the Databricks side, I had to create a Personal Access Token for the Service Principal using the Databricks API.
On the Power BI service side I then had to use username = 'token' and as password the generated PAT.
โ04-02-2023 06:57 AM
@pgruetterโ :
To add a service principal to Databricks, you need to follow the steps below:
After following these steps, you should be able to connect Power BI service to Databricks SQL Warehouse using the service principal.
โ04-03-2023 11:08 PM
Thanks for the feedback. My problem is, that I don't have a "User Management" in the left pane.
In the meantime, I found the reason for that: The description only works if you're using Unity Catalog. In this case, we don't use Unity Catalog yet.
โ04-03-2023 11:23 PM
Hi @pgruetterโ
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
โ04-04-2023 12:21 AM
I couldn't completely solve this issue yet. But I think I managed to add the service principal to the classical Databricks Workspace by going to the Admin Console --> Groups --> edit "admins" group.
โ04-12-2023 12:18 AM
In the end, once the Service Principal is properly authorized on the Databricks side, I had to create a Personal Access Token for the Service Principal using the Databricks API.
On the Power BI service side I then had to use username = 'token' and as password the generated PAT.
โ11-01-2023 06:49 AM
Hello
I was wondering if you could elaborate on the solution to the issue you posted. We have a Power BI dataset based upon tables in a databricks sql warehouse. I have followed the steps to create an access token for the service principal which is registered in the databricks workspace with admin permissions. However when changing the credentials for the power bi data source we specified authentication method = Username/Password and entered the word Token in the username field and the PAT token generated on behalf of the service principal.
This resulted in an error
I was wondering if we had correctly followed your procedure?
Kind regards
Amie
โ03-24-2024 08:20 PM
Please check if you have enabled the service principal to use PAT token in admin settings.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group