0
votes

Could not able to add Azure AD Service Principal Name into Azure Datadatabricks through portal. Finally, I have added my Service Principal into the Azure Databricks with help of Databricks APIs Endpoints. Now, I need to create PAT Token for my Service Principal Name.

1

1 Answers

1
votes

Note: You add the Azure AD service principal to a workspace using the SCIM API.

Unfortunately, you cannot create Azure Databricks token programmatically.

You’ll use an Azure Databricks personal access token (PAT) to authenticate against the Databricks REST API. To create a PAT that can be used to make API requests:

  1. Go to your Azure Databricks workspace.
  2. Click the user icon in the top-right corner of the screen and click User Settings.
  3. Click Access Tokens > Generate New Token.
  4. Copy and save the token value.

Even for creating using APIs, initial authentication to this API is the same as for all of the Azure Databricks API endpoints: you must first authenticate as described in Authentication.

For more details, refer Tutorial: Run a job with an Azure service principal