- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Azure
-
Azure AD
-
Databricks SQL
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 10:51 AM
Thanks for your reply. I didnt get your last point. What user? its masked in your reponse
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2022 11:21 PM
Hm redacted...
Yea we just use a default userID which is only used for powerBi connectivity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- connecting to azure data bricks using service principal.
- use service principal based authentication for configuring azure data bricks data source in power bi service.
- what is the authentication type we should use?
- what would be the username and password should be used in Power BI Service .
I request you to help me. I am happy to provide you more information if required.
Thanks
Venkat