Cloning triggers in Azure Data Factory

Fargnoli, Al 21 Reputation points
2022-10-28T21:00:21.727+00:00

Very often, I need a new trigger (tumbling window) with a different date range, but the exact same run parameters (which are long and complicated). I've found that editing the trigger does no good. It never runs again after changing the date range. Am I abusing the tumbling window trigger? Is there a better way to trigger an ADF pipeline to rerun on existing data? Right now, I am saving my run parameters in Notepad and pasting them into every new trigger I create, which seems clunky, hacky, and prone to error.

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

Accepted answer
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2022-10-31T16:58:04.233+00:00

    Hi @Fargnoli, Al ,
    Welcome to Microsoft Q&A platform and thanks for posting your question here.
    As I understand your ask, you want to clone the trigger and want to avoid the task of recreating its related configuration and debug parameters . Kindly let me know if that is not the case.

    • Copy the JSON of existing Trigger
    • Create a new trigger and provide the required name say newtrigger (or leave the default name) and open its JSON by clicking on {} icon and paste the copied json of the existing trigger
    • Rename the trigger name as the original trigger name i.e. newtrigger (or the default name) and click ok
    • Publish the changes. Once you hit on publish, it will create two triggers with same name. Delete if another one is not required and republish the changes.

    Kindly check the below video for reference:

    255690-clonetrig.gif

    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
    1 person 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.