Hi Team,
I’m trying to understand how Workspace Base Environments interact with serverless compute when using Databricks Asset Bundles (DAB).
According to the documentation:
Workspace Base Environments are supported only for serverless Python, Python wheel, and notebook task types
Jobs do not support Workspace Base Environments
Notebook tasks can use Workspace Base Environments only when the environment is configured directly in the notebook’s settings
Serverless notebook compute ≠ serverless job compute
This is causing confusion in my setup.
My Setup
I created a custom Workspace Base Environment in DEV
I attached this base environment to my notebooks using Notebook Settings → Environment
When I run the notebook manually in DEV, it correctly uses my custom base environment
I deploy the same notebooks to QA using Databricks Asset Bundles
But in QA, the notebook always uses the Standard base environment, not my custom one
Here is a simplified version of my DAB job:
tasks:
- task_key: Create_external_location_conformance
notebook_task:
notebook_path: /Workspace/Shared/Unity_Catalog/...
environment_key: Default
My Questions
When a notebook task runs inside a DAB‑deployed job, does it ever use the Workspace Base Environment?
If I want QA to use the same custom base environment that I configured in DEV notebooks, how can I enforce that through DAB?
Is the only supported method to manually open each notebook in QA and re‑select the base environment in Notebook Settings?
Is there any way to automate or propagate the notebook’s environment selection during DAB deployment?
What I Observed
Running the notebook manually → uses custom base environment
Running the notebook via a job → uses serverless job compute, not the base environment
DAB’s environment_key seems unrelated to Workspace Base Environments
Promotion to QA does not preserve the notebook’s environment selection
Goal
I want:
DEV notebooks → use custom base environment
QA notebooks → also use the same custom base environment( created one in qa)
And I want this to happen automatically via DAB, without manually opening each notebook in QA and re‑selecting the environment.
- and also can we create the workspace base environment for serverless in compute section inside settings with DAB or Terraform
Is this possible today? If not, what is the recommended pattern?
Thanks!