10-26-2023 07:06 AM
When generating the standard setup with databricks bundle init we will get databricks.yml that references resources/*. The targets are set in the databricks.yml and the resources (pipelines and jobs) are set in different files.
I have dlt pipelines that I want to run continuously in the production workspace but, to save cost, want to run triggered in the dev workspace. My pipelines in Azure Devops deploy the code first to dev and then to prod using the databricks bundle deploy -t xxx.
Is there a best practice for how to implement the differences?
I tried adding an if statement but it doesn't seem to be working
03-01-2024 07:18 AM
@Retired_mod The YAML snippets you included aren't valid bundle configurations. The `-f` flag also doesn't exist.
DABs are always deployed in their entirety, not selectively.
The configuration syntax reference can be found here: https://docs.databricks.com/en/dev-tools/bundles/settings.html
11-02-2023 07:46 AM
In our case we are using build pipelines in Azure Devops do deploy the solution, which consist or multiple different jobs and dlt pipelines. We are using Databricks bundles as created by databricks bundle init, which creates one databricks.yml and a Resources -folder, where the individual pipeline specifications reside.
To give context, our build pipeline looks like this:
The deploy-steps.yml looks like this:
Any recommendations on how to specify different settings per environment in this case?
03-01-2024 07:22 AM
It is possible to use target overrides to customize resources based on the target you're deploying to.
Documentation can be found here: https://docs.databricks.com/en/dev-tools/bundles/settings.html#targets
An example of this pattern can be found here: https://github.com/databricks/cli/blob/main/bundle/tests/override_pipeline_cluster/databricks.yml
Instead of the `clusters` or `name` field, you would include the `continuous` field.
07-17-2024 08:09 AM
That's exactly my words! I'd not be surprised if this were the author of DAB judging by the nickname (https://github.com/databricks/cli/commits?author=pietern) 😉
02-23-2024 11:19 AM
-f is unknown shorthand flag for databricks bundle deploy. Any workaround on how to deploy different jobs with different targets?
05-27-2024 07:28 AM
I also like to know the solution to this problem
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