How to use managed Service Principal to connect PowerBI to Databrick SQL Warehouse

zmsoft 470 Reputation points
2025-04-10T03:40:09.32+00:00

Hi there,

Since databricks cannot allow external users, non-Databricks users can access the workspace.

So we decided to use a Service Principal, create a Service Principal for the end user, and then grant the corresponding permissions to the Service Principal. End users connect to SQL Warehouse through a Service Principal in Power BI.

Haven't found a way to get the access token for the managed service principal in the documentation, any suggestions?

Thanks&Regards,

zmsoft

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,539 questions
{count} votes

1 answer

Sort by: Most helpful
  1. phemanth 15,765 Reputation points Microsoft External Staff Moderator
    2025-04-14T04:59:50.7333333+00:00

    @zmsoft

    Here are the steps to generate a Personal Access Token (PAT) for a Service Principal in Databricks, along with the relevant documentation:

    Create a Service Principal in Databricks:

    • Go to your Databricks workspace.
    • Navigate to the "User Management" section.
    • Click on "Service Principals" and then "Add Service Principal".
    • Enter the necessary details and create the Service Principal.

    Generate a Personal Access Token (PAT):

    • Once the Service Principal is created, go to the "User Settings" section in the Databricks UI.
    • Click on "Generate New Token".
    • Provide a name and expiration period for the token.
    • Click "Generate" and copy the token.

    For more detailed instructions, you can refer to the official Databricks documentation on personal access token authentication

    andmanaging service principals

    https://stackoverflow.com/questions/66792583/azure-databricks-pat-token-creation-for-azure-service-principal-name

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.