<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Workspace Base Environment not applied when promoting DAB‑deployed notebooks to QA in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workspace-base-environment-not-applied-when-promoting-dab/m-p/148076#M52825</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m trying to understand how &lt;STRONG&gt;Workspace Base Environments&lt;/STRONG&gt; interact with &lt;STRONG&gt;serverless compute&lt;/STRONG&gt; when using &lt;STRONG&gt;Databricks Asset Bundles (DAB)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to the documentation:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Workspace Base Environments are supported only for serverless Python, Python wheel, and notebook task types&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Jobs do &lt;EM&gt;not&lt;/EM&gt; support Workspace Base Environments&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Notebook tasks can use Workspace Base Environments only when the environment is configured directly in the notebook’s settings&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Serverless notebook compute ≠ serverless job compute&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This is causing confusion in my setup.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;My Setup&lt;/STRONG&gt;&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;I created a &lt;STRONG&gt;custom Workspace Base Environment&lt;/STRONG&gt; in DEV&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;I attached this base environment to my notebooks using &lt;STRONG&gt;Notebook Settings → Environment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;When I run the notebook manually in DEV, it correctly uses my custom base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;I deploy the same notebooks to QA using &lt;STRONG&gt;Databricks Asset Bundles&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;But in QA, the notebook always uses the &lt;STRONG&gt;Standard&lt;/STRONG&gt; base environment, not my custom one&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Here is a simplified version of my DAB job:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;yaml&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;tasks:&lt;/SPAN&gt;
  &lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;task_key:&lt;/SPAN&gt; &lt;SPAN&gt;Create_external_location_conformance&lt;/SPAN&gt;
    &lt;SPAN&gt;notebook_task:&lt;/SPAN&gt;
      &lt;SPAN&gt;notebook_path:&lt;/SPAN&gt; &lt;SPAN&gt;/Workspace/Shared/Unity_Catalog/...&lt;/SPAN&gt;
    &lt;SPAN&gt;environment_key:&lt;/SPAN&gt; &lt;SPAN&gt;Default&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;My Questions&lt;/STRONG&gt;&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;When a notebook task runs inside a &lt;STRONG&gt;DAB‑deployed job&lt;/STRONG&gt;, does it ever use the &lt;STRONG&gt;Workspace Base Environment&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If I want QA to use the &lt;STRONG&gt;same custom base environment&lt;/STRONG&gt; that I configured in DEV notebooks, how can I enforce that through DAB?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is the only supported method to manually open each notebook in QA and re‑select the base environment in Notebook Settings?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to automate or propagate the notebook’s environment selection during DAB deployment?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;What I Observed&lt;/STRONG&gt;&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Running the notebook manually → uses custom base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Running the notebook via a job → uses serverless job compute, not the base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;DAB’s environment_key seems unrelated to Workspace Base Environments&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Promotion to QA does not preserve the notebook’s environment selection&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;I want:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;DEV notebooks → use custom base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;QA notebooks → also use the same custom base environment( created one in qa)&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;And I want this to happen &lt;STRONG&gt;automatically via DAB&lt;/STRONG&gt;, without manually opening each notebook in QA and re‑selecting the environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;and also can we create the workspace base environment for serverless in compute section inside settings with DAB or Terraform&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Is this possible today? If not, what is the recommended pattern?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Feb 2026 19:30:56 GMT</pubDate>
    <dc:creator>Charansai</dc:creator>
    <dc:date>2026-02-11T19:30:56Z</dc:date>
    <item>
      <title>Workspace Base Environment not applied when promoting DAB‑deployed notebooks to QA</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-base-environment-not-applied-when-promoting-dab/m-p/148076#M52825</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m trying to understand how &lt;STRONG&gt;Workspace Base Environments&lt;/STRONG&gt; interact with &lt;STRONG&gt;serverless compute&lt;/STRONG&gt; when using &lt;STRONG&gt;Databricks Asset Bundles (DAB)&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to the documentation:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Workspace Base Environments are supported only for serverless Python, Python wheel, and notebook task types&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Jobs do &lt;EM&gt;not&lt;/EM&gt; support Workspace Base Environments&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Notebook tasks can use Workspace Base Environments only when the environment is configured directly in the notebook’s settings&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Serverless notebook compute ≠ serverless job compute&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;This is causing confusion in my setup.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;My Setup&lt;/STRONG&gt;&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;I created a &lt;STRONG&gt;custom Workspace Base Environment&lt;/STRONG&gt; in DEV&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;I attached this base environment to my notebooks using &lt;STRONG&gt;Notebook Settings → Environment&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;When I run the notebook manually in DEV, it correctly uses my custom base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;I deploy the same notebooks to QA using &lt;STRONG&gt;Databricks Asset Bundles&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;But in QA, the notebook always uses the &lt;STRONG&gt;Standard&lt;/STRONG&gt; base environment, not my custom one&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Here is a simplified version of my DAB job:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;yaml&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;tasks:&lt;/SPAN&gt;
  &lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;task_key:&lt;/SPAN&gt; &lt;SPAN&gt;Create_external_location_conformance&lt;/SPAN&gt;
    &lt;SPAN&gt;notebook_task:&lt;/SPAN&gt;
      &lt;SPAN&gt;notebook_path:&lt;/SPAN&gt; &lt;SPAN&gt;/Workspace/Shared/Unity_Catalog/...&lt;/SPAN&gt;
    &lt;SPAN&gt;environment_key:&lt;/SPAN&gt; &lt;SPAN&gt;Default&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;My Questions&lt;/STRONG&gt;&lt;/H2&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;When a notebook task runs inside a &lt;STRONG&gt;DAB‑deployed job&lt;/STRONG&gt;, does it ever use the &lt;STRONG&gt;Workspace Base Environment&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If I want QA to use the &lt;STRONG&gt;same custom base environment&lt;/STRONG&gt; that I configured in DEV notebooks, how can I enforce that through DAB?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is the only supported method to manually open each notebook in QA and re‑select the base environment in Notebook Settings?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is there any way to automate or propagate the notebook’s environment selection during DAB deployment?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;What I Observed&lt;/STRONG&gt;&lt;/H2&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Running the notebook manually → uses custom base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Running the notebook via a job → uses serverless job compute, not the base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;DAB’s environment_key seems unrelated to Workspace Base Environments&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Promotion to QA does not preserve the notebook’s environment selection&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;H2&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN&gt;I want:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;DEV notebooks → use custom base environment&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;QA notebooks → also use the same custom base environment( created one in qa)&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;And I want this to happen &lt;STRONG&gt;automatically via DAB&lt;/STRONG&gt;, without manually opening each notebook in QA and re‑selecting the environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;and also can we create the workspace base environment for serverless in compute section inside settings with DAB or Terraform&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Is this possible today? If not, what is the recommended pattern?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 19:30:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-base-environment-not-applied-when-promoting-dab/m-p/148076#M52825</guid>
      <dc:creator>Charansai</dc:creator>
      <dc:date>2026-02-11T19:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Workspace Base Environment not applied when promoting DAB‑deployed notebooks to QA</title>
      <link>https://community.databricks.com/t5/data-engineering/workspace-base-environment-not-applied-when-promoting-dab/m-p/148356#M52879</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you've correctly identified workspace base environments aren't currently supported by DABs as they're a relatively new feature. They are more meant to give a quick base environment to workspace users rather than used to deploy notebooks as jobs through DABS.&lt;/P&gt;
&lt;P&gt;The correct way to do this is to specify the environment in the DAB and then use this environment for the job, rather than trying to use the workspace base environment. See the snippet below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;resources:
  jobs:
    serverless_job_environment:
      name: serverless_job_environment
      environments:
        - environment_key: default
          spec:
            environment_version: "2"
            dependencies:
              - "my-private-lib==1.2.3"
              - "requests==2.32.*"

      tasks:
        - task_key: nb_task
          notebook_task:
            notebook_path: ../src/notebook.ipynb
          environment_key: default&lt;/LI-CODE&gt;
&lt;P&gt;Docs for this here&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/examples" target="_blank"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Emma&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 17:20:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workspace-base-environment-not-applied-when-promoting-dab/m-p/148356#M52879</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2026-02-13T17:20:32Z</dc:date>
    </item>
  </channel>
</rss>

