When deploying Azure data factory how to stop CDC pipeline using pre script

Sanchila, Namindu 5 Reputation points
2023-09-08T09:00:09.9733333+00:00

Hi,

I am currently facing an issue when deploying the Azure data factory using CDC.

User's image

To stop triggers I am using a prescript provided by Microsft document. How do I improve that pre-script to stop CDC pipeline automatically?

Here is big picture of the my pipelineUser's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} votes

2 answers

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2023-09-18T13:58:23.5033333+00:00

    @Sanchila, Namindu Thank you for your patience.

    Yes, it is possible to start/stop the running CDCs as part of pre- and post-automatically. For reference, I have the sample scripts (attached) which can get list of all running CDCs for a factory and stop them as part of prescript and then later start them again as part of postscript.

    1. preScriptForStoppingRunningCDCs.txt
    2. postScriptForStartingPreviouslyStoppedCDCs.txt

    PS: You would need to pass the stopped CDCs names from prescript to postscript as task output environment variables.

    Hope this info help. Please let me know how it goes.

    0 comments No comments

  2. Sudip Bala 20 Reputation points
    2024-05-09T12:05:50.68+00:00

    Sanchila, Namindu. Did you resolved this ?


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.