<?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: Deploy Workflow only to specific target (Databricks Asset Bundles) in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90582#M1814</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79252"&gt;@johnb1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not sure if you can reference yaml in targets mapping, but I can check it tommorrow morning.&lt;BR /&gt;But if I had to guess,&amp;nbsp;based on the documentation entry below, I would say that there is currently no way to reference another yaml file in targets mapping:&lt;/P&gt;&lt;P&gt;"The include array specifies a list of path globs that contain configuration files to include within the bundle. These path globs are relative to the location of the bundle configuration file in which the path globs are specified.&lt;/P&gt;&lt;P&gt;The Databricks CLI does not include any configuration files by default within the bundle. You must use the include array to specify any and all configuration files to include within the bundle, other than the databricks.yml file itself.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This include array can appear only as a top-level mapping&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;So, the easiest way to achieve what you want is to do something similiar. But, tommorrow I will confirm if we can reference yaml file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1726495087989.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11257i2CE3A38B013C3803/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1726495087989.png" alt="szymon_dybczak_0-1726495087989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 13:58:35 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2024-09-16T13:58:35Z</dc:date>
    <item>
      <title>Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90546#M1810</link>
      <description>&lt;P&gt;I am using &lt;U&gt;Databricks Asset Bundles&lt;/U&gt; to deploy Databricks workflows to all of my target environments (dev, staging, prod). However, I have one specific workflow that is supposed to be deployed &lt;U&gt;only&lt;/U&gt; to the dev target environment.&lt;/P&gt;&lt;P&gt;How can I implement that this specific workflow is only deployed to dev target?&lt;/P&gt;&lt;P&gt;I was searching for information to do that on the workflow level (&lt;A href="https://docs.databricks.com/api/azure/workspace/jobs/create" target="_blank" rel="noopener"&gt;Create a new job | Jobs API | REST API reference | Azure Databricks&lt;/A&gt;). However, according&amp;nbsp; this does not seem to be possible.&lt;/P&gt;&lt;P&gt;Any other location where I can specify this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 09:49:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90546#M1810</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2024-09-16T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90561#M1811</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79252"&gt;@johnb1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;To deploy to specifitc target, you can deploy with -t flag:&lt;/P&gt;&lt;PRE&gt;databricks bundle deploy -t dev&lt;/PRE&gt;&lt;P&gt;Check the docs:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/cli/bundle-commands.html" target="_blank" rel="noopener"&gt;bundle command group | Databricks on AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 11:58:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90561#M1811</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-16T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90564#M1812</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79252"&gt;@johnb1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can achieve what you want by using targets mapping. For dev target define job in resource submapping that you only want to have in that environment.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1726489293705.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11249i71F0496088BD64DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1726489293705.png" alt="szymon_dybczak_0-1726489293705.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:23:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90564#M1812</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-16T12:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90571#M1813</link>
      <description>&lt;P&gt;Thank you for that suggestion &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;. This looks helpful. My workflow is already defined in another .yaml file, as I have stored all workflow configs - each in one file - in a central folder. Thing is I do not want to define the workflow under &lt;EM&gt;targets&lt;/EM&gt; in my DAB root file (mostly called databricks.yaml), as you suggested, but rather reference it. Is this possible?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:51:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90571#M1813</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2024-09-16T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90582#M1814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79252"&gt;@johnb1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not sure if you can reference yaml in targets mapping, but I can check it tommorrow morning.&lt;BR /&gt;But if I had to guess,&amp;nbsp;based on the documentation entry below, I would say that there is currently no way to reference another yaml file in targets mapping:&lt;/P&gt;&lt;P&gt;"The include array specifies a list of path globs that contain configuration files to include within the bundle. These path globs are relative to the location of the bundle configuration file in which the path globs are specified.&lt;/P&gt;&lt;P&gt;The Databricks CLI does not include any configuration files by default within the bundle. You must use the include array to specify any and all configuration files to include within the bundle, other than the databricks.yml file itself.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This include array can appear only as a top-level mapping&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;So, the easiest way to achieve what you want is to do something similiar. But, tommorrow I will confirm if we can reference yaml file.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1726495087989.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11257i2CE3A38B013C3803/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1726495087989.png" alt="szymon_dybczak_0-1726495087989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 13:58:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90582#M1814</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-16T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90585#M1815</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;that would be great&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":ok_hand:"&gt;👌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 13:57:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/90585#M1815</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2024-09-16T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/91173#M1857</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you have a chance to check if such referencing of a workflow from another yaml file is possible?&lt;/P&gt;&lt;P&gt;Given you did not reply, I assume it is not possible. This would also confirm what I found during my tests.&lt;/P&gt;&lt;P&gt;If you know otherwise, however, please let me know&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 08:41:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/91173#M1857</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2024-09-20T08:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/91176#M1858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/79252"&gt;@johnb1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Sorry, I checked it but forgot to post reply.&amp;nbsp; I can confirm that currently it's not possible. I'll setup a request for this feature on databricks idea portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 09:00:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/91176#M1858</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-20T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/91543#M1881</link>
      <description>&lt;P&gt;Thanks for getting back and clarifying&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:43:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/91543#M1881</guid>
      <dc:creator>johnb1</dc:creator>
      <dc:date>2024-09-24T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/108769#M2939</link>
      <description>&lt;P&gt;Any update to this solution yet?&amp;nbsp;&lt;A href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502" target="_blank"&gt;@szymon_dybczak&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 12:29:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/108769#M2939</guid>
      <dc:creator>anishumesh</dc:creator>
      <dc:date>2025-02-04T12:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/110031#M2988</link>
      <description>&lt;P&gt;Hi, I'm also looking to deploy different jobs in different targets. And these jobs are defined in a separate .yml file and we'll need to reference these jobs in the targets accordingly. Any updates on this implementation?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 18:28:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/110031#M2988</guid>
      <dc:creator>meghanav_hmc</dc:creator>
      <dc:date>2025-02-12T18:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/117159#M3308</link>
      <description>&lt;P&gt;Hi, also curious about this update, this would be a really helpful feature for us since we have humongous job specifications that are specific for dev and test environments. Adding these to the top level databricks.yml file is really cluttering up our config. I've tried overriding the resources on prod with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;job:
  job_name: {}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;and variations of this, hoping this would override the job with an empty list, but it doesn't seem to work since it just doesn't override anything.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 13:40:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/117159#M3308</guid>
      <dc:creator>asham</dc:creator>
      <dc:date>2025-04-30T13:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Workflow only to specific target (Databricks Asset Bundles)</title>
      <link>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/146894#M4812</link>
      <description>&lt;P&gt;I know it's a bit old, but if someone is looking into a solution, then I was able to resolve the issue where I need to deploy some jobs only into the DEV target:&lt;/P&gt;&lt;DIV&gt;&lt;A href="https://github.com/databricks/bundle-examples/tree/main/knowledge_base/target_includes" target="_blank" rel="noopener"&gt;https://github.com/databricks/bundle-examples/tree/main/knowledge_base/target_includes&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;Use YAML anchors to define resources once and include them only in specific targets.&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;File:&lt;/STRONG&gt;resources/test_jobs.yml&lt;/H2&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Define anchor with job configuration
job-config: &amp;amp;job-config
  my_test_job:
    name: "Test Job"
    tasks:
      - task_key: test_task
        notebook_task:
          notebook_path: tests/my_test.py

# Reference anchor only in dev target
targets:
  dev:
    resources:
      jobs:
        &amp;lt;&amp;lt;: *job-config  # Merge anchor here
  uat:
    # Empty - no test jobs in uat
  prd:
    # Empty - no test jobs in prd&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;File:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;databricks.yml&lt;/H2&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;bundle:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;name:&lt;/SPAN&gt; &lt;SPAN class=""&gt;my_bundle&lt;/SPAN&gt;

&lt;SPAN class=""&gt;include:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;./resources/test_*.yml&lt;/SPAN&gt;  &lt;SPAN class=""&gt;# Include test jobs file&lt;/SPAN&gt;

&lt;SPAN class=""&gt;targets:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;dev:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;# test_jobs.yml adds resources here&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;uat:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;# No test jobs&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;prd:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;# No test jobs&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;dev target gets my_test_job&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;uat and prd targets have no test jobs&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 05 Feb 2026 11:56:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/deploy-workflow-only-to-specific-target-databricks-asset-bundles/m-p/146894#M4812</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2026-02-05T11:56:58Z</dc:date>
    </item>
  </channel>
</rss>

