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
$triggersADF | ForEach-Object { Stop-AzureRmDataFactoryV2Trigger -ResourceGroupName <ResourceGroupName> -DataFactoryName <DataFactoryName> -Name $_.name -Force }
ARM template deployment
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.