Authenticating to Databricks using a PAT
To authenticate and access Databricks REST APIs, we can use two types of tokens:
- PATs
- Azure Active Directory tokens
A PAT is used as an alternative password to authenticate and access Databricks REST APIs. By the end of this recipe, you will have learned how to use PATs to access the Spark managed tables that we created in the preceding recipes using Power BI Desktop and create basic visualizations.
Getting ready
PATs are enabled by default for all Databricks workspaces created on or after 2018. If this is not enabled, an administrator can enable or disable tokens, irrespective of their creation date.
Users can create PATs and use them in REST API requests. Tokens have optional expiration dates and can be revoked.
How to do it…
This section will show you how to generate PATs using the Azure Databricks UI. Also, apart from the UI, you can use the Token API to generate and revoke tokens. However, there...