<?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: Cloning of Workflow from One env to different env using Job API in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99571#M40030</link>
    <description>&lt;P&gt;Hi Amet&lt;/P&gt;&lt;P&gt;Databricks Asset Bundles are designed precisely for the requirements you have.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/index.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also transfer existing jobs that were created manually into a bundle. This works like this, for example:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks bundle generate job --existing-job-id 6565621249&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2024 05:17:05 GMT</pubDate>
    <dc:creator>Stefan-Koch</dc:creator>
    <dc:date>2024-11-21T05:17:05Z</dc:date>
    <item>
      <title>Cloning of Workflow from One env to different env using Job API</title>
      <link>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99549#M40021</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;One of my team members recently shared one requirement: he wants to migrate the 10 Workflows from the sandbox to the dev environment to run his model in dev env.&lt;/P&gt;&lt;P&gt;I wanted to move all these workflows in an automated way and one of the solutions that came to my mind is Databricks Job API.&lt;/P&gt;&lt;P&gt;Below are the quick steps that I have followed.&lt;/P&gt;&lt;P&gt;1. Get the existing workflow configuration from the Databricks UI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open existing workflow --&amp;gt; Click on View JSON&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_0-1732126423665.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13038i4FAC3691FCEF6E40/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_0-1732126423665.png" alt="ameet9257_0-1732126423665.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Choose the Create option and copy the JSON.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_1-1732126508104.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13039iB5E66B45D3B4C1EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_1-1732126508104.png" alt="ameet9257_1-1732126508104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3. Call the JOB API and pass the copy JSON to the API body.&lt;/P&gt;&lt;P&gt;POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://XXXXXX.azuredatabricks.net/api/2.1/jobs/create" target="_blank"&gt;https://XXXXXX.azuredatabricks.net/api/2.1/jobs/create&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_2-1732126684331.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13040i97D0EBB7C46475FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_2-1732126684331.png" alt="ameet9257_2-1732126684331.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using these three steps, I migrated the workflow to a new environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the best way is to go through the terraform and CI-CD for production env but if there is no such thing in place I found this as the quickest option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please do share your solutions as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Job API #databricks #workflows&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 18:28:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99549#M40021</guid>
      <dc:creator>ameet9257</dc:creator>
      <dc:date>2024-11-20T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning of Workflow from One env to different env using Job API</title>
      <link>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99571#M40030</link>
      <description>&lt;P&gt;Hi Amet&lt;/P&gt;&lt;P&gt;Databricks Asset Bundles are designed precisely for the requirements you have.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/bundles/index.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/bundles/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can also transfer existing jobs that were created manually into a bundle. This works like this, for example:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks bundle generate job --existing-job-id 6565621249&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 05:17:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99571#M40030</guid>
      <dc:creator>Stefan-Koch</dc:creator>
      <dc:date>2024-11-21T05:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cloning of Workflow from One env to different env using Job API</title>
      <link>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99581#M40034</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/107693"&gt;@Stefan-Koch&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. This looks interesting and I will try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 07:42:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/cloning-of-workflow-from-one-env-to-different-env-using-job-api/m-p/99581#M40034</guid>
      <dc:creator>ameet9257</dc:creator>
      <dc:date>2024-11-21T07:42:59Z</dc:date>
    </item>
  </channel>
</rss>

