How To Enable Disable Triggers Using CI/CD in different Enviroments (DEV/PROD)

Anmol Ganju 166 Reputation points
2022-09-21T06:04:49.22+00:00

I was following the blog (https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html) to set end date in past to disable the trigger and set end date to future to enable the triggers, but once the trigger is in started state, we cannot change its behavior unless we disabled it and then change, this is rarely possible when we talk about Production environment, how to change the change the trigger end date when its in start state?

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
258 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,740 questions
{count} vote

Accepted answer
  1. BhargavaGunnam-MSFT 27,566 Reputation points Microsoft Employee
    2022-09-23T04:30:29.9+00:00

    Hello @Anmol Ganju ,

    I was able to reproduce the issue from my end.

    244122-image.png

    After further research, I found out that this is expected behavior.

    To update an active Trigger(running) using the release, you will need to stop the triggers(manually or use Powershell) before the deployment and then restart after the release pipeline deployment is complete

    As mentioned in the below documentation, you can also use the PowerShell task to disable/enable triggers.

    Please check the "Updating active triggers" section in this docs: https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-delivery-automate-azure-pipelines#updating-active-triggers

    The document has steps on how to configure Powershell to achieve this.

    I hope this helps. Please let me know if you have any further questions.

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

    • 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 additional answers

Sort by: Most helpful