简体   繁体   中英

Creating CI and CD pipelines for Azure data factory with or without triggers

When trying to configure a release pipeline for ADF getting an error as below:

Trigger enabled cannot update : Cannot update enabled trigger; trigger needs to be disabled first.

But there are no triggers in ADF.

How can this be handled?

There are 3 steps in release pipeline

  1. Disable triggers Azure power shell script

$triggersADF | ForEach-Object { Stop-AzureRmDataFactoryV2Trigger -ResourceGroupName <ResourceGroupName> -DataFactoryName <DataFactoryName> -Name $_.name -Force }

  1. ARM template deployment

  2. Enable triggers Azure power shell script

$triggersADF | ForEach-Object { Start-AzureRmDataFactoryV2Trigger -ResourceGroupName <ResourceGroupName> -DataFactoryName <DataFactoryName> -Name $_.name -Force }

It seems that you are already following the sequence of deploy ADF as per MS docs.

I suspect that there is something unexpected in the ARM template. I would recommend you to export the template manually and use it instead. Your scripts look fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM