Databricks Bundles: What Changes per Target? A developer documented how Databricks Declarative Automation Bundles (formerly Databricks Asset Bundles) handle per-target configuration, showing that keeping code identical across environments and binding only catalog, host, schedules, run identity and permissions in each target block keeps the tested commit the same one that runs in production. The writeup highlights a precedence trap: resource settings override presets, which override deployment mode, so an explicit pause_status: UNPAUSED on a job stays unpaused even in development mode. The author recommends making schedule state a variable that defaults to PAUSED and unpausing it only in the production target. I used AI tools to help draft and edit this post. I checked the facts and the wording, and the original lives at geekindata.com https://www.geekindata.com/blog/50-databricks-bundles-target-ladder . The diagrams are on that page. Key takeaways Keep the code identical in every target, and put only a small, explicit set of bindings in each target block: catalog, host, schedules, run identity and permissions. The payoff: the commit you tested in dev is the same commit that runs in prod, and a hardcoded schedule or host cannot leak from one environment into the next. A bundle will not make that split for you. It will happily deploy the same jobs to three environments, but its defaults are lopsided: development mode is careful, production mode checks a few things, and a test target in the middle gets nothing unless you ask. Named model: fixed code, bound targets, split identities Figure 1. The code column never changes. If something differs between environments, it belongs in the target block. Declarative Automation Bundles describe jobs, pipelines and other resources in YAML next to the code, and the Databricks CLI deploys them per target. They were called Databricks Asset Bundles until March 2026; the rename is non-breaking bundle FAQs https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/faqs . The bundle template I maintain is small: one catalog per environment, serverless jobs, an integration test job deployed with the bundle, and an Azure DevOps pipeline using workload identity federation. It ships two targets, dev and prod. What follows comes from deciding what goes in those target blocks, and what changes when you add a third. It is the Databricks counterpart to post 11 https://www.geekindata.com/blog/11-fabric-cicd-blast-radius parameterize environment bindings and post 46 https://www.geekindata.com/blog/46-fabric-cicd-cherry-pick-promotion promote by commit . mode: development prefixes resource names with your user name, tags jobs and pipelines, pauses all schedules and triggers, allows concurrent runs, and disables the deployment lock. mode: production validates that pipelines are not in development, optionally checks that you are deploying from the expected Git branch, and expects either a service principal as run as or explicit run as and permissions deployment modes https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/deployment-modes . Modes are optional, and there is no test mode. A test target without one gets no prefix, no schedule pausing and no production checks unless you add presets. Then the precedence rule from the same page: resource settings override presets, and presets override the mode. Learn's own example is the one that bites: a schedule set to UNPAUSED on the job stays unpaused even when the target's trigger pause status preset says PAUSED . Write pause status: UNPAUSED into the job YAML because prod needs it, and every target that deploys the job runs it on schedule. That includes development mode: an explicit pause status: UNPAUSED stays unpaused in dev too, so set the dev value yourself deployment modes https://docs.databricks.com/aws/en/dev-tools/bundles/deployment-modes . Figure 2. One bundle deployed to dev and prod gives two jobs. Development mode added the dev sai prefix and a tag, but the job sets pause status: UNPAUSED , so the dev copy stayed Scheduled. At the time of this shot prod had no run as and ran as the deploying user, which is not what I recommend for a real prod target. Figure 4 shows the same prod job after I added a service principal. So I make the schedule state a variable, paused by default, and unpause it only in the prod target: variables: catalog: description: One Unity Catalog catalog per environment. schedule pause status: default: PAUSED test sp app id: description: Application ID of the test run principal. prod sp app id: description: Application ID of the prod run principal. targets: dev: mode: development default: true variables: catalog: project dev test: variables: catalog: project test run as: service principal name: ${var.test sp app id} prod: mode: production git: branch: main variables: catalog: project prod schedule pause status: UNPAUSED run as: service principal name: ${var.prod sp app id} The job reads pause status: ${var.schedule pause status} . Forget to set it and the job stays paused, which is the failure you want. Figure 3. Safety defaults live at the weakest layer. Anything you write on the resource wins. One catalog per environment is the simplest Unity Catalog layout I know that keeps environments apart by construction. The catch is how the catalog reaches code. Bundle variables are deployment-time values: running a job uses the values from its last deployment, and passing a different variable at run time does not apply. Learn says to use job parameters for run values instead substitutions and variables https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/variables . So the job declares a catalog parameter whose default is ${var.catalog} . SQL uses a ${catalog} placeholder, Python reads the parameter, and no file under the source folder names a catalog. A small lint in CI fails the build if it finds a workspace host, a token, a catalog name or a cluster ID in code. One more edge: variable precedence runs from --var , to BUNDLE VAR environment variables, to the per-target override file, to target values, to the default. A stray environment variable on a build agent quietly beats your YAML. CI deploys as a service principal through workload identity federation, so there is no secret to rotate. On Azure DevOps that is a federated service connection with the Azure CLI task and DATABRICKS AUTH TYPE=azure-cli authenticate with Azure DevOps https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/auth-with-azure-devops ; on GitHub Actions it is github-oidc with id-token: write GitHub Actions https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/github . The workspace host stays out of the repo and comes from pipeline variables. Workloads then run as a different service principal per environment through run as . Learn calls this the most secure way to run production: the run identity can have fewer permissions than the deployer, and only that principal or someone allowed to use it can deploy with it run identity https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/run-as . In my demo the prod job shows the service principal under Run as, while I stay the creator Figure 4 . Two steps sat outside the YAML: I needed the Service Principal User role on it before the deploy would set it as run as , and the first run failed with UnauthorizedError until the service principal had access to the workspace. The rerun succeeded. Figure 4. The prod job runs as agent-sp, not as me. The first run failed before the service principal had workspace access; the rerun succeeded. The schedule is paused only because the demo ships it paused. The sharp edges are on that page too. When the deploying identity differs from run as , only jobs and pipelines are supported. Top-level and target run as take a user or a service principal, not a group, and non-admins can only set it to themselves. Model serving endpoints error if run as is set in the same bundle. If the bundle will grow beyond jobs and pipelines, decide early where those resources live. Top-level permissions give users, groups and service principals CAN VIEW , CAN RUN or CAN MANAGE on everything the bundle deploys, and Databricks recommends that approach. The same principal cannot appear in both the top-level mapping and a resource's own permissions bundle permissions https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/permissions . One naming catch: the bundle takes CAN RUN , and on a job the UI shows it as Can Manage Run Figure 5 . Figure 5. Permissions on the deployed prod job. The demo runners group was given CAN RUN in the bundle and shows as Can Manage Run. Those control who can see, run or edit the job. They do not decide what the job can read and write. That is Unity Catalog grants for the run identity on its own catalog, so the test principal cannot touch the prod catalog even if someone points a job at it. In my demo the run service principal holds USE CATALOG, USE SCHEMA, SELECT and MODIFY on its own catalog Figure 6 . Figure 6. Data access is a Unity Catalog grant to the run identity, separate from who may view or run the job. Figure 7. Three different questions: who deploys, who runs, and who may look. Only the run identity needs data access. Every target deploys the same commit. My template's pipeline runs unit tests on the agent without Spark, deploys to dev, runs the bundle's integration test job on serverless with databricks bundle run , and only then deploys prod behind an environment approval. The git.branch check in production mode is a second lock: a prod deploy from any other branch fails unless someone passes --force . Same idea as post 46 https://www.geekindata.com/blog/46-fabric-cicd-cherry-pick-promotion : what reaches prod is a commit you can name, not whatever the branch tip happens to be. Two targets is a real option. A third costs a catalog, a run principal, grants, a pipeline stage and test data. It pays when other teams consume the output before prod, when you need prod-shaped data that dev must not hold, or when a release needs sign-off on a stable shared environment. If integration tests run fine against dev, a test target mostly adds a place for drift. When I add one, it copies prod's shape, not dev's: no development mode, a service principal as run as , paused schedules, its own catalog. Hardcoding UNPAUSED on the job. Resource settings beat presets, so test runs on prod's schedule. A test target with no mode and no presets. It gets none of the development defaults and none of the production checks. Passing the catalog as a bundle variable at run time. Variables resolve at deploy; use a job parameter. Catalog names in notebooks. One copied notebook writes to the wrong environment. One service principal for deploy and run. It works, but the run identity now needs deploy rights. Job permissions as data access. They govern the job, not the tables. Use as-is run as for test and prod. Adapt before you use The dev and prod bundle demo https://github.com/geekindata/tech-demos/tree/main/demos/dabs-dev-vs-prod in my public tech-demos repo deploys one job to two targets, so you can see what development mode does to the job name and schedule. The bundle will deploy anything to anywhere. Decide what differs per target, write it down once, and let the code stay the same.