Do CICD pipeline fail for ADF pipelines having triggers ?

Akula, Aravind 21 Reputation points
2020-12-17T20:01:24.737+00:00

Hello,

we built CICD pipeline for ADF pipeline which has triggers, however its failing at the ARM Template deployment: Resource Group scope step with below error.

##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.  
##[error]Details:  
##[error]TriggerEnabledCannotUpdate: Cannot update enabled Trigger; the trigger needs to be disabled first.   
##[error]Check out the troubleshooting guide to see if your issue is addressed: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting  
##[error]Task failed while creating or updating the template deployment.  

Any suggestions as to why the CICD pipeline fails with presence of ADF pipeline triggers..?

thanks,
Aravind

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,198 questions
0 comments No comments
{count} votes

Accepted answer
  1. KeshavKiran-MSFT 391 Reputation points Microsoft Employee
    2020-12-18T07:51:50.887+00:00

    Hi @Akula, Aravind ,

    Welcome to Microsoft Q&A platform and thank you for your query.

    The error which you are getting while deploying the template is expected behavior as deployment can fail if you try to update active trigger without deactivating the trigger.

    To update active triggers, you need to manually stop them and then restart them after the deployment.

    You can use to deactivate/Stop the triggers before the deployment from the portal and later start it post the deployment.

    49369-triggerstopstart.gif

    You can achieve the same using the PowerShell task. Refer to the "update active trigger" section in this docs: https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#update-active-triggers

    Hope this helps. Do let us know if you any further queries.

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

    • Please accept an answer if correct. 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.

0 additional answers

Sort by: Most helpful