- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2023 03:24 PM
I am trying to call run-now with notebook_params in Azure Databricks CLI, following
https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/jobs-cli
and
escapse the quotes as stated in the documentation
https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/#json-string-parameters
But I got the failure messages Error: Got unexpected extra argument when calling:
databricks jobs run-now --job-id 1 --notebook-params "{\"key\":\"value\"}"
I also tried:
$runJobBody = [PSCustomObject]@{
key="vaule "
placeholder="placeHolder"
}
$runJobBody = $runJobBody | ConvertTo-Json -Compress
$runJobBody | out-file -encoding ASCII run-job.json
databricks jobs run-now --job-id 1 --notebook-params run-job.json
But it gave the same error message.
Do anyone know how I should pass the parameters to databricks jobs run-now?
The version of databricks CLI got used is databricks-cli-0.17.x