2021年3月11日星期四

Trigger status update at the time of ADF deployment

I am deploying the ADF ARM template from DEV instance to PROD using Azure DevOps pipelines.

For the deployment below are the steps I followed. enter image description here

  1. Scripts provided by Microsoft to stop the triggers before deployment
  2. ARM template deployment
  3. Scripts provided by Microsoft to start the triggers and delete the resources not in the JSON file.

I do have around 20 triggers in which 15 are in running state and 5 are stopped for a while in PROD. In my DEV instance all triggers are in stopped status in order to avoid unnecessary pipeline runs. But at the time of deployment into PROD I need to set status of 15 out of 20 triggers as Started.

To achieve this I have added the runtimeState of triggers in template parameterization and now I could select the trigger status from Override Parameters Option in the ARM Template Deployment task as below. enter image description here

Now the issue is after PROD deployment, All triggers are in Stopped status only as in DEV instance.

Eventhough the runtimeState is overwritten at the time of deployment, it is not reflecting in the PROD instance after deployment.

After my analysis, I suspect the issue is with start trigger script from Microsoft is referring the ARMTemplateForFactory.json file from DEV where status of all triggers are stopped. enter image description here

How to resolve this? I have to update the trigger status of each trigger job at the time of deployment from DEV to PROD.

https://stackoverflow.com/questions/66581417/trigger-status-update-at-the-time-of-adf-deployment March 11, 2021 at 07:13PM

没有评论:

发表评论