02-21-2022 12:12 AM
Hello,
We are trying to connect Databricks SQL endpoint from PowerBi using Azure AD service principal, which has been added to Databricks workspace using SCIM APIs. Now, when we open connection to Databricks in powerbi desktop and provide Azure AD access token (as mentioned in link below), we get error saying "We couldn't authenticate with the credentials provided. Please try again." (screenshot below).
Ultimate goal is to use Service Principal credentials instead of individual credentials, when we publish the dataset to power bi service and we hope Powerbi service will manage the oAuth2 flow to get the token.
May you please suggest what is possible?
I have managed to get a PAT for the Service Principal that is added to workspace, using the SCIM APIs. But, I don't want to use PAT as it is static and if anyone gets hold of it, they can easily get into the data.
Thanks and Regards,
Kaushik Maji
02-21-2022 01:55 AM
At the moment I do not think that is possible.
The help page mentions:
An Azure Active Directory token (recommended), an Azure Databricks personal access token, or your Azure Active Directory account credentials.
These methods are all user bound, so no service principal.
What we do is using a '*****' user which has access to Databricks and powerbi.
02-21-2022 01:55 AM
At the moment I do not think that is possible.
The help page mentions:
An Azure Active Directory token (recommended), an Azure Databricks personal access token, or your Azure Active Directory account credentials.
These methods are all user bound, so no service principal.
What we do is using a '*****' user which has access to Databricks and powerbi.
02-21-2022 10:51 AM
Thanks for your reply. I didnt get your last point. What user? its masked in your reponse
02-21-2022 11:21 PM
Hm redacted...
Yea we just use a default userID which is only used for powerBi connectivity
08-24-2022 09:06 AM
@Kaushik Maji
Hi Kaushik,
I am currently working implementing similar to this thread. I need your help here as you already have exposure around the same.
I request you to help me. I am happy to provide you more information if required.
Thanks
Venkat
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