<?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: Warehouse ID specified in job yaml file for sql tasks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143383#M52167</link>
    <description>&lt;P&gt;If your resource already exists you can reference it by name using following technique (also described in an article(&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1767890351783.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22786i27B67DE5874DF017/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1767890351783.png" alt="szymon_dybczak_0-1767890351783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2026 16:39:58 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2026-01-08T16:39:58Z</dc:date>
    <item>
      <title>Warehouse ID specified in job yaml file for sql tasks</title>
      <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143358#M52155</link>
      <description>&lt;P&gt;My goal is to trigger an alert I have through a job, and it seems I have to specify the warehouse id within the job yaml file itself. We have different environments with different warehouse ids, and the issue is that if I specify the warehouse id in the job then it wont work in higher environments, since they're different. I was wondering if there is a workaround I can do here? Is it possible to parameterise the warehouse id within the job yaml file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 14:22:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143358#M52155</guid>
      <dc:creator>halsgbs</dc:creator>
      <dc:date>2026-01-08T14:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Warehouse ID specified in job yaml file for sql tasks</title>
      <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143364#M52160</link>
      <description>&lt;P&gt;Yes, it is possible. The approach is to &lt;STRONG&gt;parameterise the warehouse_id at &lt;EM&gt;deploy time&lt;/EM&gt;&lt;/STRONG&gt; (not at run time) using &lt;STRONG&gt;Databricks Asset Bundles variables&lt;/STRONG&gt; and &lt;STRONG&gt;per-target overrides&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/dev-tools/bundles/variables" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/dev-tools/bundles/variables&lt;/A&gt;&lt;/P&gt;&lt;H3&gt;What to do (action points)&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Introduce a bundle variable&lt;/STRONG&gt; for the warehouse id (for example warehouse_id).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Reference that variable&lt;/STRONG&gt; anywhere you currently hardcode the warehouse id in the job YAML (so the job definition resolves the correct ID during deployment).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Set different values per environment/target&lt;/STRONG&gt; (dev/test/prod) in your bundle configuration so each deployment writes the right warehouse id for that workspace/environment.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In CI/CD, &lt;STRONG&gt;inject the variable value&lt;/STRONG&gt; via pipeline/environment variables when deploying each target (instead of hardcoding it in the YAML).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 08 Jan 2026 14:41:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143364#M52160</guid>
      <dc:creator>bianca_unifeye</dc:creator>
      <dc:date>2026-01-08T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Warehouse ID specified in job yaml file for sql tasks</title>
      <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143366#M52162</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/202948"&gt;@halsgbs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The best practices here it to use resource reference. So if you have definition in your warehouse:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;resources:
  sql_warehouses:
    small_warehouse:&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you reference it using the bundle resource key (small_warehouse&lt;/SPAN&gt;&lt;SPAN&gt;), not the display name:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;warehouse_id: ${resources.sql_warehouses.small_warehouse.id}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here you can find article with above approach described in more details:&lt;/P&gt;&lt;P&gt;&lt;A href="https://freedium-mirror.cfd/https://databrickster.medium.com/dabs-referencing-your-resources-f98796808666" target="_blank"&gt;DABs: Referencing Your Resources | by Hubert Dudek - Freedium&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 14:59:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143366#M52162</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2026-01-08T14:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Warehouse ID specified in job yaml file for sql tasks</title>
      <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143370#M52164</link>
      <description>&lt;P&gt;Thank you! looks like the alert_id also needs to be parametised, and I was wondering if its possible to use a job parameter to do so? If I can use the alert name then that would be great but I believe it has to be the alert id, which will be different across environments as well as different everytime the alert gets dropped and recreated. I can use a notebook to get the alert id using the alert name and then pass it on using a job parameter. Is that possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 15:19:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143370#M52164</guid>
      <dc:creator>halsgbs</dc:creator>
      <dc:date>2026-01-08T15:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Warehouse ID specified in job yaml file for sql tasks</title>
      <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143376#M52165</link>
      <description>&lt;P&gt;Thanks for this &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;! I think this creates a new resource, I tried doing this using the details of a warehouse we already have and I'm getting this error in devops:&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN&gt;Error: cannot create sql endpoint: failed creating warehouse: SQL warehouse with name `Starter Endpoint` already exists.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 16:02:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143376#M52165</guid>
      <dc:creator>halsgbs</dc:creator>
      <dc:date>2026-01-08T16:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Warehouse ID specified in job yaml file for sql tasks</title>
      <link>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143383#M52167</link>
      <description>&lt;P&gt;If your resource already exists you can reference it by name using following technique (also described in an article(&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1767890351783.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22786i27B67DE5874DF017/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1767890351783.png" alt="szymon_dybczak_0-1767890351783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 16:39:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/warehouse-id-specified-in-job-yaml-file-for-sql-tasks/m-p/143383#M52167</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2026-01-08T16:39:58Z</dc:date>
    </item>
  </channel>
</rss>

