2

To create a Trigger, seems like you have to publish it before it can take effect. But publishing requires a PR to the 'Collaboration' branch, which means we will have to create a PR even before testing if the trigger actually works and also multiple subsequent PRs until we get the trigger right.

Especially when you want to develop Event Triggers based on file uploads, this is counter productive to create a PR even before you have tested the Trigger.

Is there a different way to set up ADF in the DEV environment or to activate a trigger without needing to publish it first?

Thanks!

Gadam
  • 2,674
  • 8
  • 37
  • 56
  • No, there isn't. We can't activate a trigger without publish it first. Unless you trigger the pipeline with other service, such as logic app. – Leon Yue Jan 21 '21 at 01:47
  • so what is the recommended approach to developing triggers? – Gadam Jan 21 '21 at 05:03
  • That's Data Factory built-in trigger limit. Logic app also have much triggers which can help you trigger the pipeline run, trigger+action(execute data factory pipeline). – Leon Yue Jan 21 '21 at 05:47
  • Hi Gadam, you can ref answer here: https://stackoverflow.com/a/65822640/10549281 – Leon Yue Jan 22 '21 at 01:49
  • This is really a malor drawback, every time a PR is created it tiggers a CI/CD process and we can only approve a PR when is tested. How can you test your trigger in that way. – Playing With BI Jan 13 '22 at 08:28
  • @PlayingWithBI that's where the different environments come into play. Normally you have at least a DEV and PRD environment. Once you publish to DEV, you test and check triggers work before publishing to PRD. – AmyChodorowski May 20 '22 at 08:58

2 Answers2

2

You can use PowerShell query to Start and Stop ADF triggers, you can find the code to do the same here

PowerShell just need few details like your subscription details, resource group details where ADF exists and then ADF details. This can be controlled without having to publish the ADF, moreover you can create a generic script and save it for further use-case testing, this will save your time in future as well.

Thanks!

Pratik Somaiya
  • 695
  • 5
  • 18
0

There is an other way can help achieve activate a trigger without needing to publish it first. @Joseph Xu provides more details for us.

You could ref the answer here: https://stackoverflow.com/a/65822640/10549281

Leon Yue
  • 15,693
  • 1
  • 11
  • 23