Azure databricks repos: how to pull via API

1.1k Views Asked by At

I am using repos for Azure DevOps to connect Azure databricks to my respositories in DevOps. I need to pull automatically from Azure DevOps pipelines. For that I tried using databricks API to pull, but referring to this link there is no method for pulling.

Following the instruction and looking at swagger the only methods available are: repos API Is there a way to pull via API or CLI or any other way programmatically? If yes, how?

1

There are 1 best solutions below

1
On BEST ANSWER

You need to use PATCH endpoint as described in documentation. It will Updates the repo to the given branch (or tag) - if you already on the given branch, then it will pull the latest changes. You can also use databricks-cli for that, like, it's shown in the following demo.