<?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: Different settings per target with Asset bundles in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/70757#M1225</link>
    <description>&lt;P&gt;I also like to know the solution to this problem&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 14:28:25 GMT</pubDate>
    <dc:creator>MohsenJ</dc:creator>
    <dc:date>2024-05-27T14:28:25Z</dc:date>
    <item>
      <title>Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/49926#M546</link>
      <description>&lt;P&gt;When generating the standard setup with&amp;nbsp;&lt;EM&gt;databricks bundle init&lt;/EM&gt; we will get databricks.yml that references resources/*. The targets are set in the databricks.yml and the resources (pipelines and jobs) are set in different files.&lt;/P&gt;&lt;P&gt;I have dlt pipelines that I want to run continuously in the production workspace but, to save cost, want to run triggered in the dev workspace. My pipelines in Azure Devops deploy the code first to dev and then to prod using the &lt;EM&gt;databricks bundle deploy -t xxx&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Is there a best practice for how to implement the differences?&lt;/P&gt;&lt;P&gt;I tried adding an if statement but it doesn't seem to be working&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;${{ if eq(${bundle.environment}, 'dev') }}&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;continuous&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;false&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;${{ elseif eq(${bundle.environment}, 'prod' ) }}&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;continuous&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Oct 2023 14:06:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/49926#M546</guid>
      <dc:creator>Mathias</dc:creator>
      <dc:date>2023-10-26T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/50376#M574</link>
      <description>&lt;P&gt;In our case we are using build pipelines in Azure Devops do deploy the solution, which consist or multiple different jobs and dlt pipelines. We are using Databricks bundles as created by&amp;nbsp;&lt;EM&gt;databricks bundle init&lt;/EM&gt;, which creates one databricks.yml and a Resources -folder, where the individual pipeline specifications reside.&lt;/P&gt;&lt;P&gt;To give context, our build pipeline looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;stage&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Release_To_Dev&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;variables&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;group&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;databricks-dev-env&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;jobs&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;template&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;deploy-steps.yml&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;parameters&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;environment&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;dev&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;stage&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Release_To_Production&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;dependsOn&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Release_To_Dev&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;variables&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;group&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;databricks-prod-env&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;condition&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;and(succeeded('Release_To_Dev'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;jobs&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;template&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;deploy-steps.yml&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;parameters&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;environment&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;prod&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The deploy-steps.yml looks like this:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;parameters&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Environment&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;jobs&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;SPAN&gt;job&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;BuildAndRun&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl -fsSL &lt;A href="https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh" target="_blank"&gt;https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh&lt;/A&gt; | sh&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;displayName&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'Install Databricks CLI'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; - &lt;/SPAN&gt;&lt;SPAN&gt;script&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/local/bin/databricks bundle deploy --target ${{ parameters.environment }}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;env&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DATABRICKS_HOST&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$(databricks_host)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ARM_TENANT_ID&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$(arm_tenant_id)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ARM_CLIENT_ID&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$(arm_client_id)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ARM_CLIENT_SECRET&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;$(arm_client_secret)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;displayName&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'Deploy the pipeline, jobs and code files defined in the bundle'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Any recommendations on how to specify different settings per environment in this case?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 14:46:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/50376#M574</guid>
      <dc:creator>Mathias</dc:creator>
      <dc:date>2023-11-02T14:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/61802#M926</link>
      <description>&lt;P&gt;-f is unknown shorthand flag for databricks bundle deploy. Any workaround on how to deploy different jobs with different targets?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 19:19:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/61802#M926</guid>
      <dc:creator>137292</dc:creator>
      <dc:date>2024-02-23T19:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/62452#M940</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;The YAML snippets you included aren't valid bundle configurations. The `-f` flag also doesn't exist.&lt;/P&gt;
&lt;P&gt;DABs are always deployed in their entirety, not selectively.&lt;/P&gt;
&lt;P&gt;The configuration syntax reference can be found here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 15:18:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/62452#M940</guid>
      <dc:creator>pietern</dc:creator>
      <dc:date>2024-03-01T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/62453#M941</link>
      <description>&lt;P&gt;It is possible to use target overrides to customize resources based on the target you're deploying to.&lt;/P&gt;
&lt;P&gt;Documentation can be found here:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/settings.html#targets" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/settings.html#targets&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;An example of this pattern can be found here:&amp;nbsp;&lt;A href="https://github.com/databricks/cli/blob/main/bundle/tests/override_pipeline_cluster/databricks.yml" target="_blank"&gt;https://github.com/databricks/cli/blob/main/bundle/tests/override_pipeline_cluster/databricks.yml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Instead of the `clusters` or `name` field, you would include the `continuous` field.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 15:22:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/62453#M941</guid>
      <dc:creator>pietern</dc:creator>
      <dc:date>2024-03-01T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/70757#M1225</link>
      <description>&lt;P&gt;I also like to know the solution to this problem&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 14:28:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/70757#M1225</guid>
      <dc:creator>MohsenJ</dc:creator>
      <dc:date>2024-05-27T14:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Different settings per target with Asset bundles</title>
      <link>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/79135#M1382</link>
      <description>&lt;P&gt;That's exactly my words! I'd not be surprised if this were the author of DAB judging by the nickname (&lt;A href="https://github.com/databricks/cli/commits?author=pietern" target="_blank"&gt;https://github.com/databricks/cli/commits?author=pietern&lt;/A&gt;)&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 15:09:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/different-settings-per-target-with-asset-bundles/m-p/79135#M1382</guid>
      <dc:creator>JacekLaskowski</dc:creator>
      <dc:date>2024-07-17T15:09:52Z</dc:date>
    </item>
  </channel>
</rss>

