Databricks Asset bundle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2023 05:19 PM
Hi,
I am new to databricks, We are trying to use Databricks asset bundles for code deployment .I have spect a lot of time but still so many things are not clear to me.
Can we change the target path of the notebooks deployed from /shared/.bundle/* to something like a shared folder in workspace or a repos in higher environment?
All the examples are to deploy jobs, delta live tables etc. How can I deploy a simple notebook without any job.
#databricksassetbundle #asset #deployment #bundle #CICD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 07:11 AM
Thank you @Retired_mod for responding.
I have tried to use a custom target also.I am using Databricks asset bundle from my local machine and have not configured it in azure devops.
Lets say I use the below custom path in target.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2023 06:08 AM
Hi @Retired_mod,
Thank you for your post, I thought it will solve my issues too, however after reading your suggestion it was nothing new for me, because l already have done exactly that.. Here is what I have dome so you or anyone can replicate it:
1. I used databricks bundle init to create a bundle with default python template
2. I modified the generated databicks.yaml to have my custom target names a per your post.
When I run databricks bundle deploy -t my_env I have set the Repo main branch for both production an development mode environments. I expect when deploying the code from the main branch repo to be used however I can not get that working...
Here is the error I get:
Here is my bundle yaml for the custom target:
Here is my resource basic notebook yaml:
Please, please can someone tell me what is wrong and how do I configure the yaml to point to the Repo?
Any pointers to working code example or documentation/schema yaml reference is much appreciated.
Thanks!
Emil

