I am trying to deploy ARM template through Azure CLI as follows:
az deployment group create --name APP-ADF-Template --resource-group <my-resource-group> --template-file ./pipelines/app_arm.json --parameters ./pipelines/app_stage_arm_params.json
But getting the error, when any trigger in Start
state.
ERROR: Deployment failed. Correlation ID: 10c0ee19-1452-41ce-8edd-4ecf33499f25. {
"error": {
"code": "TriggerEnabledCannotUpdate",
"message": "Cannot update enabled Trigger; the trigger needs to be disabled first. ",
"target": null,
"details": null
}
}
We can stop one by one trigger with the below command.
az datafactory trigger stop --factory-name <my-data-factory> --resource-group <my-resource-group> --trigger-name <my-trigger-1>
Like this we have more than 10 triggers, it will be difficult to stop one by one. Is there any way to stop all of them at once and start all of them post deployment successful?
There is no such way to stop all the triggers at one time, in this case, your option is to use a loop.
Stop all the triggers:
For Windows:
For Unix
After deployment, start all the triggers:
For Windows:
For Unix