<?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: Databricks CLI how to start a job and pass the parameters? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63430#M32237</link>
    <description>&lt;P&gt;Hi Jim, I think the right syntax would be something like this:&lt;/P&gt;
&lt;P&gt;databricks jobs run-now --job-id 85218616788189 --notebook-params '{"demo":"parameter successful"}'.&lt;/P&gt;
&lt;P&gt;Let me know if that worked!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2024 19:53:03 GMT</pubDate>
    <dc:creator>Sravani-Vadali</dc:creator>
    <dc:date>2024-03-12T19:53:03Z</dc:date>
    <item>
      <title>Databricks CLI how to start a job and pass the parameters?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63423#M32232</link>
      <description>&lt;P&gt;I try to start a job ID&amp;nbsp;&lt;SPAN&gt;85218616788189&amp;nbsp;&lt;/SPAN&gt;and pass one parameters 'demo' in Windows Shell.&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;databricks jobs run-now&amp;nbsp;85218616788189&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If I try this one,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;databricks jobs run-now --json '{"job_id":85218616788189,"notebook_params": {"demo":"parameter successful"}}'&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jim12321_0-1710267172994.png" style="width: 1064px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6623i12CF52E8CD5BB77B/image-dimensions/1064x30/is-moderation-mode/true?v=v2" width="1064" height="30" role="button" title="jim12321_0-1710267172994.png" alt="jim12321_0-1710267172994.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What is the right syntax?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;@CLI&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:15:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63423#M32232</guid>
      <dc:creator>jim12321</dc:creator>
      <dc:date>2024-03-12T18:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks CLI how to start a job and pass the parameters?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63430#M32237</link>
      <description>&lt;P&gt;Hi Jim, I think the right syntax would be something like this:&lt;/P&gt;
&lt;P&gt;databricks jobs run-now --job-id 85218616788189 --notebook-params '{"demo":"parameter successful"}'.&lt;/P&gt;
&lt;P&gt;Let me know if that worked!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 19:53:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63430#M32237</guid>
      <dc:creator>Sravani-Vadali</dc:creator>
      <dc:date>2024-03-12T19:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks CLI how to start a job and pass the parameters?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63604#M32293</link>
      <description>&lt;P&gt;Thanks for your help. I think this syntax only works for Databricks CLI (Legacy). I am using the new CLI which doesn't support the syntax.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/dev-tools/cli/commands.html" target="_blank"&gt;https://docs.databricks.com/en/dev-tools/cli/commands.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 19:39:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/63604#M32293</guid>
      <dc:creator>jim12321</dc:creator>
      <dc:date>2024-03-13T19:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks CLI how to start a job and pass the parameters?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/78278#M35498</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/101042"&gt;@jim12321&lt;/a&gt;&amp;nbsp;I got the same error with CLI version 0.223.1, but I could resolve it by escaping the quotation marks:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;databricks jobs run-now --json '{\"job_id\":85218616788189,\"notebook_params\": {\"demo\":\"parameter successful\"}}'&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Seems to be fixed by the databricks team with version 0.223.2 and using CLI version 0.208 your provided command works fine too.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 10:50:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/78278#M35498</guid>
      <dc:creator>Husky</dc:creator>
      <dc:date>2024-07-11T10:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks CLI how to start a job and pass the parameters?</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/112934#M44362</link>
      <description>&lt;P&gt;If the job itself has parameters you have to use 'job_parameters' instead. No need for escaping as of version 0.243.0&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks jobs run-now --json '{"job_id": &amp;lt;JOB_ID&amp;gt;,  "job_parameters": {"will_exit": "yes"}}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 14:06:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-cli-how-to-start-a-job-and-pass-the-parameters/m-p/112934#M44362</guid>
      <dc:creator>JaviRuiz</dc:creator>
      <dc:date>2025-03-18T14:06:29Z</dc:date>
    </item>
  </channel>
</rss>

