Databricks Token API create

Rajamannar A K 86 Reputation points
2021-09-29T06:15:07.297+00:00

Hi Folks,
I'm trying to create a token to my databricks workspace using Token API, I'm following this documentation for it link.

   curl --netrc --request POST \  
   https://<databricks-instance>/api/2.0/token/create \  
   \--data '{ "comment": "This is an example token", "lifetime_seconds": 7776000 }' \  
   | jq .  

In this <databricks-instance> I'm passing my workspace instance name, but I get the following error when I use it in the Azure pipeline.
136162-token-error.png

Also how to store the output token in .netrc file

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