<?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 Re: Do not deploy all notebook to the given environment in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150693#M53496</link>
    <description>&lt;P class="p8i6j01 paragraph"&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/192995"&gt;@maikel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you considered using target‑scoped resources so that the jobs for specific notebooks only exist in the dev target and are simply not defined for pre-prod and prod?&lt;/P&gt;
&lt;P&gt;Databricks Asset Bundles let you put a targets: block inside each resource file, and only the resources listed for the active target are deployed.&lt;/P&gt;
&lt;P&gt;See below references...&amp;nbsp;Explains how databricks.yml is structured, and how targets can override or add their own resources. This is the basis for "only define some resources for certain targets."&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;AWS: &lt;SPAN aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;&lt;A class="_1ibi0s3e5 markdown-link _1ibi0s376" href="https://docs.databricks.com/aws/en/dev-tools/bundles/settings" rel="noreferrer" target="_blank"&gt;Databricks Asset Bundle configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Azure: &lt;SPAN aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;&lt;A class="_1ibi0s3e5 markdown-link _1ibi0s376" href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/settings" rel="noreferrer" target="_blank"&gt;Databricks Asset Bundle configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;GCP: &lt;SPAN aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;&lt;A class="_1ibi0s3e5 markdown-link _1ibi0s376" href="https://docs.databricks.com/gcp/en/dev-tools/bundles/settings" rel="noreferrer" target="_blank"&gt;Databricks Asset Bundle configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2026 13:34:31 GMT</pubDate>
    <dc:creator>Ashwin_DSA</dc:creator>
    <dc:date>2026-03-12T13:34:31Z</dc:date>
    <item>
      <title>Do not deploy all notebook to the given environment</title>
      <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150666#M53492</link>
      <description>&lt;P&gt;Hello Community!&lt;BR /&gt;&lt;BR /&gt;what is the best way to avoid deploying some notebooks from the asset bundle to higher environments?&lt;BR /&gt;Given I have following resources structure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources/
  ├── jobs/
  │   ├── notebook_a.yml
  │   ├── notebook_b.yml          ← dev only
  │   ├── notebook_c.yml          ← dev only
  │   ├── notebook_d.yml
 src/notebooks/
  ├── jobs/
  │   ├── notebook_a.py                      
  │   ├── notebook_b.py       ← dev only
  │   ├── notebook_c.py       ← dev only
  │   └── notebook_d.py&lt;/LI-CODE&gt;&lt;P&gt;We have three envs: dev, pre-prod and prod.&lt;BR /&gt;I would like to avoid deplying notebooks b and c to pre-prod and prod. How to handle it nicely in databricks.yml file?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 10:15:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150666#M53492</guid>
      <dc:creator>maikel</dc:creator>
      <dc:date>2026-03-12T10:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Do not deploy all notebook to the given environment</title>
      <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150693#M53496</link>
      <description>&lt;P class="p8i6j01 paragraph"&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/192995"&gt;@maikel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you considered using target‑scoped resources so that the jobs for specific notebooks only exist in the dev target and are simply not defined for pre-prod and prod?&lt;/P&gt;
&lt;P&gt;Databricks Asset Bundles let you put a targets: block inside each resource file, and only the resources listed for the active target are deployed.&lt;/P&gt;
&lt;P&gt;See below references...&amp;nbsp;Explains how databricks.yml is structured, and how targets can override or add their own resources. This is the basis for "only define some resources for certain targets."&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;AWS: &lt;SPAN aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;&lt;A class="_1ibi0s3e5 markdown-link _1ibi0s376" href="https://docs.databricks.com/aws/en/dev-tools/bundles/settings" rel="noreferrer" target="_blank"&gt;Databricks Asset Bundle configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Azure: &lt;SPAN aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;&lt;A class="_1ibi0s3e5 markdown-link _1ibi0s376" href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/settings" rel="noreferrer" target="_blank"&gt;Databricks Asset Bundle configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;GCP: &lt;SPAN aria-expanded="false" aria-haspopup="dialog" data-base-ui-click-trigger=""&gt;&lt;A class="_1ibi0s3e5 markdown-link _1ibi0s376" href="https://docs.databricks.com/gcp/en/dev-tools/bundles/settings" rel="noreferrer" target="_blank"&gt;Databricks Asset Bundle configuration&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 13:34:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150693#M53496</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-12T13:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Do not deploy all notebook to the given environment</title>
      <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150704#M53498</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;thanks for the quick response! I think this is a good direction!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 14:32:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/150704#M53498</guid>
      <dc:creator>maikel</dc:creator>
      <dc:date>2026-03-12T14:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Do not deploy all notebook to the given environment</title>
      <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/151401#M53641</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am trying to implement environment distinction for notebooks and have some questions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;My resources:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources/
  ├── jobs/
  │   ├── notebook_a.yml
  │   ├── notebook_b.yml
  │   ├── notebook_c.yml          
  │   ├── notebook_d.yml
  ├── debug/
      ├── notebook_debug.yml&lt;/LI-CODE&gt;&lt;P&gt;And my databricks.yml:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;bundle&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;name&lt;/SPAN&gt;: example_bundle&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;include&lt;/SPAN&gt;:&lt;BR /&gt;  - resources/jobs/*.yml&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;targets&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;local&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;mode&lt;/SPAN&gt;: development&lt;BR /&gt;    &lt;SPAN&gt;default&lt;/SPAN&gt;: true&lt;BR /&gt;    &lt;SPAN&gt;workspace&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;host&lt;/SPAN&gt;: https://dev-env.url.databricks.com&lt;BR /&gt;&lt;BR /&gt;  &lt;SPAN&gt;dev&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;mode&lt;/SPAN&gt;: production&lt;BR /&gt;    &lt;SPAN&gt;default&lt;/SPAN&gt;: false&lt;BR /&gt;    &lt;SPAN&gt;workspace&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;host&lt;/SPAN&gt;: https://dev-env.url.databricks.com&lt;BR /&gt;    &lt;SPAN&gt;permissions&lt;/SPAN&gt;:&lt;BR /&gt;      - ...&lt;BR /&gt;&lt;BR /&gt;  &lt;SPAN&gt;preprod&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;mode&lt;/SPAN&gt;: production&lt;BR /&gt;    &lt;SPAN&gt;default&lt;/SPAN&gt;: false&lt;BR /&gt;    &lt;SPAN&gt;workspace&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;host&lt;/SPAN&gt;: &lt;A href="https://preprod-env.url.databricks.com" target="_blank" rel="noopener"&gt;https://preprod-env.url.databricks.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Example notebook_a.yml:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;resources&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;jobs&lt;/SPAN&gt;:&lt;BR /&gt;    notebook_a:&lt;BR /&gt;      &lt;SPAN&gt;name&lt;/SPAN&gt;: notebook_a_${bundle.target}&lt;BR /&gt;      &lt;SPAN&gt;description&lt;/SPAN&gt;: some example notebook&lt;BR /&gt;&lt;BR /&gt;      &lt;SPAN&gt;environments&lt;/SPAN&gt;:&lt;BR /&gt;        - &lt;SPAN&gt;environment_key&lt;/SPAN&gt;: default&lt;BR /&gt;          &lt;SPAN&gt;spec&lt;/SPAN&gt;:&lt;BR /&gt;            &lt;SPAN&gt;client&lt;/SPAN&gt;: &lt;SPAN&gt;"4"&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;dependencies&lt;/SPAN&gt;:&lt;BR /&gt;              - ../../dist/*.whl&lt;BR /&gt;&lt;BR /&gt;      &lt;SPAN&gt;tasks&lt;/SPAN&gt;:&lt;BR /&gt;        - &lt;SPAN&gt;task_key&lt;/SPAN&gt;: notebook_a&lt;BR /&gt;          &lt;SPAN&gt;environment_key&lt;/SPAN&gt;: default&lt;BR /&gt;          &lt;SPAN&gt;notebook_task&lt;/SPAN&gt;:&lt;BR /&gt;            &lt;SPAN&gt;notebook_path&lt;/SPAN&gt;: ${workspace.file_path}/src/notebooks/notebook_a.yml&lt;BR /&gt;            &lt;SPAN&gt;source&lt;/SPAN&gt;: WORKSPACE&lt;BR /&gt;            &lt;SPAN&gt;base_parameters&lt;/SPAN&gt;:&lt;BR /&gt;              &lt;SPAN&gt;example_parameter&lt;/SPAN&gt;: "placeholder"&lt;BR /&gt;&lt;BR /&gt;      &lt;SPAN&gt;max_concurrent_runs&lt;/SPAN&gt;: 1&lt;BR /&gt;&lt;BR /&gt;      &lt;SPAN&gt;tags&lt;/SPAN&gt;:&lt;BR /&gt;        ...&lt;BR /&gt;&lt;BR /&gt;      &lt;SPAN&gt;permissions&lt;/SPAN&gt;:&lt;BR /&gt;        ...&lt;/PRE&gt;&lt;P&gt;I would like to have debug/notebook_debug deployed only to local and dev. Is there a possibility to do so in a shape of databricks.yml file which I have currently without a need to define a whole resource under the specific targets?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would like to achieve something like this:&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;bundle:
  name: example_bundle

include:
  - resources/jobs/*.yml

targets:
  local:
    mode: development
    default: true
    workspace:
      host: https://dev-env.url.databricks.com
    include:
      - resources/debug/*.yml

  dev:
    mode: production
    default: false
    workspace:
      host: https://dev-env.url.databricks.com
    permissions:
      - ...
    include:
      - resources/debug/*.yml

  preprod:
    mode: production
    default: false
    workspace:
      host: https://preprod-env.url.databricks.com&lt;/LI-CODE&gt;&lt;P&gt;Thanks a lot for the support!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 13:15:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/151401#M53641</guid>
      <dc:creator>maikel</dc:creator>
      <dc:date>2026-03-19T13:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Do not deploy all notebook to the given environment</title>
      <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/151436#M53646</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/192995"&gt;@maikel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Unfortunately, you can’t quite do that. &lt;FONT color="#993300"&gt;&lt;STRONG&gt;include&lt;/STRONG&gt;&lt;/FONT&gt; is only allowed at the top level, not inside targets. Per the bundle config spec, include is a top‑level mapping, and there’s no per‑target variant.&lt;/P&gt;
&lt;P&gt;To get debug jobs only in local + dev without redefining everything in databricks.yml, an option would be to keep databricks.yml as&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="l8rrz21 _1ibi0s3dn" data-ui-element="code-block-container"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-yaml p8i6j0e hljs language-yaml _12n1b832"&gt;&lt;SPAN class="hljs-attr"&gt;bundle:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;example_bundle&lt;/SPAN&gt;

&lt;SPAN class="hljs-attr"&gt;include:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-bullet"&gt;-&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;resources/jobs/*.yml&lt;/SPAN&gt;
  &lt;SPAN class="hljs-bullet"&gt;-&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;resources/debug/*.yml&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="l8rrz23 _1ibi0s3d6 _1ibi0s332 _1ibi0s3do _1ibi0s3bm _1ibi0s3ce"&gt;
&lt;DIV class="lqznwq0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="lqznwq0"&gt;&lt;SPAN&gt;Then in &lt;/SPAN&gt;resources/debug/notebook_debug.yml:&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="l8rrz21 _1ibi0s3dn" data-ui-element="code-block-container"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-yaml p8i6j0e hljs language-yaml _12n1b832"&gt;&lt;SPAN class="hljs-attr"&gt;debug_job_def:&lt;/SPAN&gt; &lt;SPAN class="hljs-meta"&gt;&amp;amp;debug_job_def&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;resources:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-attr"&gt;jobs:&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;notebook_debug:&lt;/SPAN&gt;
        &lt;SPAN class="hljs-attr"&gt;name:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;notebook_debug_${bundle.target}&lt;/SPAN&gt;
        &lt;SPAN class="hljs-comment"&gt;# full job definition here...&lt;/SPAN&gt;

&lt;SPAN class="hljs-attr"&gt;targets:&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;local:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-string"&gt;&amp;lt;&amp;lt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-meta"&gt;*debug_job_def&lt;/SPAN&gt;

  &lt;SPAN class="hljs-attr"&gt;dev:&lt;/SPAN&gt;
    &lt;SPAN class="hljs-string"&gt;&amp;lt;&amp;lt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-meta"&gt;*debug_job_def&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="l8rrz23 _1ibi0s3d6 _1ibi0s332 _1ibi0s3do _1ibi0s3bm _1ibi0s3ce"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="p8i6j01 paragraph"&gt;This should result in both local and dev having a notebook_debug. It won't be defined in preprod or any other environment.&amp;nbsp;&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;You may want to explore the pattern illustrated in the &lt;A href="https://community.databricks.com/t5/technical-blog/customizing-target-deployments-in-databricks-asset-bundles/ba-p/124772" target="_self"&gt;Databricks technical blog&lt;/A&gt; on customising target deployments.&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;Does that answer your question?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 16:49:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/151436#M53646</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-19T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Do not deploy all notebook to the given environment</title>
      <link>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/151460#M53651</link>
      <description>&lt;P&gt;This is perfect! Thank you very much&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/216690"&gt;@Ashwin_DSA&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 21:35:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/do-not-deploy-all-notebook-to-the-given-environment/m-p/151460#M53651</guid>
      <dc:creator>maikel</dc:creator>
      <dc:date>2026-03-19T21:35:25Z</dc:date>
    </item>
  </channel>
</rss>

