Auto incremental load (or run adf pipeline) when there is a change in data using CDC

Obaid UrRehman 166 Reputation points
2022-09-20T09:46:12.317+00:00

Hi,

We wanted to add CDC to one of our projects so that we can process data (by loading incrementally). when ever there is a change after. We have followed this pattern to incrementally load the data: https://learn.microsoft.com/en-us/azure/data-factory/tutorial-incremental-copy-change-data-capture-feature-portal

The problem is, that this pattern is a pull mechanism, we have to provide start and end times to check if there was a change in data during the time. But we want it to automatically load data whenever there is any change in the source (Push mechanism). Is there a way to do so?

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,667 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Alberto Morillo 33,861 Reputation points MVP
    2022-09-20T12:25:46.377+00:00

    You can use an Azure Logic App to trigger a pipeline run when data has been changed.

    243023-image.png


  2. AnnuKumari-MSFT 32,831 Reputation points Microsoft Employee
    2022-10-03T08:38:18.79+00:00

    Hi @Obaid UrRehman ,

    Thankyou for your question.

    As suggested by @Alberto Morillo , using Logic app is efficient way of achieving your requirement as the other way i.e Event based trigger in ADF only works for blob creation and deletion. It doesn't support SQL insertion or modification.

    You can set logic app frequency to every minute so that it automatically triggers every minute to check if there is any new insertion in the SQL table.

    For more details, kindly check out the following video: Executing a Pipeline from Azure Logic Apps

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

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.