Git Integration Configuration via Command Line or API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2022 05:58 PM
I have an Azure service principle that is used for our CI/CD pipelines. We do not have access to the Databricks UI via user logins. Our github repos also require SSO PATs. How can I configure the git integration for the service principal so that I can use the Repos API to sync notebooks to our Databricks instances via command line or API? I can connect to DB, list repos, etc., but I cannot create a repo because the service principal is not configured in DB to access our github repos. Note that the databricks repos create works fine if I use a personal repo because the PATs are not SSO which makes sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2022 08:51 PM
I've read through that document several times previously and while it was helpful in getting me to the point where I could ask this question - it doesn't answer my question. I do not have access to the Databricks UI in our CI/CD deploymens. I need an API or CLI to configure that github integration (user and PAT). It looks like I can probably use the GIT credentials API to accomplish this, but that article doesn't cover it and I just managed to find it. Can you confirm? Are there any examples?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 11:04 AM
Yes, but how do I programmatically (via API or CLI) configure the git credentials in Databricks for the user?

