cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

source set to GIT for Databricks Asset Bundle notebook_task - git authentication fails on run

Еmil
New Contributor III

My post was marked as Spam after trying to post the description of my issue so now I have posted the question on stackoverflow.

1 REPLY 1

Еmil
New Contributor III

Hi @Retired_mod,

thank you for sorting out my "spam" and mainly for your answer.

I kind of reached to the same high-level approach you are outlining, but I did not like the idea of storing secrets in the workspace and I ended up using WORKSPACE as a source where my deployment workflow is as follows:

  • obtain access token for the service principal
  • check if existing git credential exists (I get an error - only one git credential is allowed) and delete it if it does, then create a new git credential
  • I use the git credential to clone a git repo into a new/existing databricks repo (check and create it if does not exist) using a specific branch (branch name is an Azure DevOps pipeline parameter)
  • I do asset `bundle deploy ...` where the soource in the YAML is set to WORKSPACE pointing to the code in the updated databricks repo in previous step

It would be nice to find out if improvements to around this issue is on your roadmap?
For example at the moment I found it impossible to create a workflow job using the databricks UI and set it's source to Git repo - it is not possible...

Thanks,

Emil

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