5
votes

I need to generate Azure Databricks token using Powershell script. I am done with creation of Azure Databricks using ARM template , now i am looking to generate Databricks token using powershell script .

Kindly let me know how to create Databricks token using Powershell script

2
Show what you've tried so far.Yan Sklyarenko
Still, I haven't tried much , I am looking of Powershell commands using which we can generate token but unable to find any.kartik iyer
It seems that you cloud use this token API.Nancy Xiong
I will be great , if you can provide some more info on how to use this token API in powershell , I also got the few references regarding the same , below is the url github.com/gbrueckl/Databricks.API.PowerShell/blob/master/…kartik iyer

2 Answers

4
votes

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).

0
votes

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!