<?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: Is there a way to use name prefixes for asset bundle deployments to prevent collisions in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-use-name-prefixes-for-asset-bundle-deployments/m-p/93352#M38683</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98051"&gt;@Mathias_Peters&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Yes, it is possible to do so.&lt;BR /&gt;&lt;BR /&gt;1. Configure variable that will be added to the path.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;variables:
  feature_name:
    description: This will be added to the path&lt;/LI-CODE&gt;&lt;P&gt;2. Configure workspace root_path:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;workspace:
   root_path: /Shared/.bundle/$(var.feature_name}/${bundle.name}&lt;/LI-CODE&gt;&lt;P&gt;3. Run deployment from your CI/CD pipeline providing feature_name variable:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks bundle deploy --var="feature_name=my_feature"&lt;/LI-CODE&gt;&lt;P&gt;4. Check the article on varriables in Databricks Asset bundles:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/variables.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/variables.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 19:00:32 GMT</pubDate>
    <dc:creator>filipniziol</dc:creator>
    <dc:date>2024-10-09T19:00:32Z</dc:date>
    <item>
      <title>Is there a way to use name prefixes for asset bundle deployments to prevent collisions</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-use-name-prefixes-for-asset-bundle-deployments/m-p/93324#M38677</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are using asset bundles to deploy artefacts in Databricks. We use a service account and github workflows for that. Currently, we deploy in dev mode whenever a PR is created against the main branch of our gh repo. So far so good.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, we are getting collisions when having multiple open PRs. That leads to overriding and worse deleting each others changes when creating/updating PRs.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to prevent resources from being undeployed/overwritten in this scenario?&lt;/P&gt;&lt;P&gt;I am looking into adding the github branch name into the name prefix but I am unsure if this fixes the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 15:58:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-use-name-prefixes-for-asset-bundle-deployments/m-p/93324#M38677</guid>
      <dc:creator>Mathias_Peters</dc:creator>
      <dc:date>2024-10-09T15:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to use name prefixes for asset bundle deployments to prevent collisions</title>
      <link>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-use-name-prefixes-for-asset-bundle-deployments/m-p/93352#M38683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98051"&gt;@Mathias_Peters&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Yes, it is possible to do so.&lt;BR /&gt;&lt;BR /&gt;1. Configure variable that will be added to the path.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;variables:
  feature_name:
    description: This will be added to the path&lt;/LI-CODE&gt;&lt;P&gt;2. Configure workspace root_path:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;workspace:
   root_path: /Shared/.bundle/$(var.feature_name}/${bundle.name}&lt;/LI-CODE&gt;&lt;P&gt;3. Run deployment from your CI/CD pipeline providing feature_name variable:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks bundle deploy --var="feature_name=my_feature"&lt;/LI-CODE&gt;&lt;P&gt;4. Check the article on varriables in Databricks Asset bundles:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/variables.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/variables.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:00:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/is-there-a-way-to-use-name-prefixes-for-asset-bundle-deployments/m-p/93352#M38683</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-10-09T19:00:32Z</dc:date>
    </item>
  </channel>
</rss>

