'databricks configure --token' command waiting for the input

Porsche Me 136 Reputation points
2020-10-01T04:37:38.963+00:00

I run following task in Azure DevOps, it always waiting for input? Why wasn't my bash automatic supply working?

Python 3.7 installed

databricksUrl=https://...
databricksToken=*****

databricks configure --token <<EOF
$(databricksUrl)
$(databricksToken)
EOF
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,222 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,231 Reputation points
    2020-10-01T12:31:55.707+00:00

    Hello @Porsche Me ,

    Welcome to Microsoft Q&A platform.

    You try the below Inline bash script to authenticate with Azure Databricks without variables.

    databricks configure --token <<EOF  
    https://centralus.azuredatabricks.net  
    dapXXXXXXXXXXXXXXXXXXXXXX467  
    EOF  
    

    29529-image.png

    You try the below Inline bash script to authenticate with Azure Databricks with variables.

    adburl="https://centralus.azuredatabricks.net"  
    token=dapXXXXXXXXXXXXXXXXXXXX467  
    databricks configure --token <<EOF  
    $adburl  
    $token  
    EOF  
    

    29610-image.png

    Successfully authenticated with Azure Databricks:

    29459-image.png

    OR

    You can use DevOps for Azure Databricks extension.

    This extension brings a set of tasks for you to operationalize build, test and deployment of Databricks Jobs and Notebooks.

    Once DevOps for Azure Databricks extension installed, you can directly use Configure Databricks CLI by clicking on the Add tasks.

    29624-image.png

    Hope this helps. Do let us know if you any further queries.

    ----------------------------------------------------------------------------------------

    Do click on "Accept Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.