Hi tarun k
If you're using a Linux-based agent, add this step before any databricks commands:
- script: |
pip install databricks-cli --upgrade
databricks --version
displayName: 'Install Databricks CLI'
To install or upgrade the Databricks CLI tool on an agent with Python already installed, you can use pip.
If the Databricks CLI is already installed and you want to ensure it is updated to the latest version, you would use
pip install --upgrade databricks-cli
If the Databricks CLI is not installed, you would use:
pip install databricks-cli
Since your agent already has Python, just add this:
- script: |
pip install databricks-cli
databricks --version
displayName: 'Install Databricks CLI'
Additional References:
https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/install
Hope this helps!
Please Let me know if you have any queries.