Generate Azure Databricks Token using Powershell script Generate Azure Databricks Token using Powershell script azure azure

Generate Azure Databricks Token using Powershell script


The only way to generate a new token is via the api which requires you to have a token in the first place. Or use the Web ui manually. There is no official powershell commands for databricks, there are some unofficial ones but they still require you to generate a token manually first.

https://github.com/DataThirstLtd/azure.databricks.cicd.tools

Disclaimer I'm the author of these.

UPDATE: these powershell commands can now authenticate using a service principal instead of a bearer token (or can generate a bearer token for you).


so right now there is no way to use the API directly after deploying an Azure Databricks Workspace. I assume that you want to use it as part of an CI/CD pipeline - right? Reason is that you first need to manually create an API token which you can then use for all subsequent API requests.But I will investigate and keep you updated here!