We would like to trigger and run a Databricks Delta Live Tables Pipeline from an Azure Synapse pipeline which creates a couple of bronze and silver tables.
I cant find any info on that.
However, it is possible to run Databricks notebooks in Synapse pipelines.
So second best would be, to run a Datatbricks notebook from Synapse. But how can I triger a Delta Live Tables pipeline from a Databricks notebook then?
You cannot call dlt pipeline by using databricks notebook in synapse pipeline, but what you can do is call web activity which can be triggered manually.
Follow below steps.
First, add a schedule to your dlt pipeline.
After, clicking on Add a schedule you will get below options.
Add Job name, check Schedule as Manual and then click on create.
Next, go these created job under Workflows.
There, copy the Job Id.
Now, in synapse pipeline add Web activity and add below details as shown in image.
https://<Your_databricks_url>/api/2.1/jobs/run-now
{ "job_id": "Job_id" }
Add job id you copied before.Bearer <Your_databricks_token>
and Content-Type as application/json
After adding all those details call the web activity.
Output:
You will get return response having run_id.