How to run azure databricks notebook via REST API

Ing. Peter Stanik 20 Reputation points
2023-06-28T20:21:22.05+00:00

What is the way how to trigger Azure Databricks notebook via REST API? Just one-time ad-hoc execution?

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,514 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-06-29T03:27:37.7066667+00:00

    @Ing. Peter Stanik - Thanks for the question and using MS Q&A platform.

    Yes, you can use the Jobs REST API to run Azure Databricks Notebook via REST API.

    You can execute notebook:

    • Either by creating a new job (you need notebook_task) and then triggering the new job run
    • Creating a single run (also called RunSubmit) - also notebook_task

    In either case, you will get a run ID, and then you need to wait until job is finished (checking the state via get run API until it's get life_cycle_state equal to TERMINATED), and then retrieve the output of the run.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.