作为 CI/CD 部署的一部分,无法在 Azure 数据工厂中激活触发器

Unable to activate triggers in Azure Data Factory as part of CI/CD deployment

我正在通过 json 模板部署 Azure 数据工厂管道以及链接服务和触发器。即使触发器在模板中具有 "runtime" 属性 作为 "started",触发器始终部署在已停止的状态,必须手动激活。

代码

{
    "name": "trigger-name-started",
    "properties": {
        "description": "some connection",
        "annotations": [],
        "runtimeState": "Stopped",
        "pipelines": [
            {
                "pipelineReference": {
                    "referenceName": "pipeline-new",
                    "type": "PipelineReference"
                }
            }
        ],
        "type": "ScheduleTrigger",
        "typeProperties": {
            "recurrence": {
                "frequency": "Minute",
                "interval": 15,
                "startTime": "2022-12-03T09:53:00Z",
                "timeZone": "UTC"
            }
        }
    }
}

Unable to activate triggers in Azure Data Factory as part of CI/CD deployment ?

如果您的触发器在开始部署之前停止。部署完成后重启。

请按照 continuous integration using Azure Pipelines and also, you could use the PowerShell 脚本停止触发器并更新您的触发器设置。

更多详细信息,请参考以下链接:

https://social.technet.microsoft.com/wiki/contents/articles/53153.azuredevops-cicd-for-azure-data-factory.aspx#Existing_CICD_Process_ARM_Template

http://datanrg.blogspot.com/2019/02/continuous-integration-and-delivery.html