cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Git Integration Configuration via Command Line or API

Dave_B_
New Contributor III

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.

2 REPLIES 2

Dave_B_
New Contributor III

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?

Dave_B_
New Contributor III

Yes, but how do I programmatically (via API or CLI) configure the git credentials in Databricks for the user?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group