Azure 数据工厂 CI/CD 计划触发器不起作用

Azure Data Factory CI/CD for Schedule Triggers Not Working

对于触发器,看起来只有 pipelines pipelinetypeProperties 块可以基于 documentation.

被覆盖

我想要实现的是使用我的 CI/CD 流程和覆盖参数 functionality,在目标 ADF 中禁用计划触发器,这与我的源 ADF 不同。

如果我检查看起来像以下字段的触发器的 JSON,则可以解决问题 "runtimeState": "Started"

{
    "name": "name_daily",
    "properties": {
        "description": " ",
        "annotations": [],
        "runtimeState": "Started",
        "pipelines": [
            {
                "pipelineReference": {
                    "referenceName": "name",
                    "type": "PipelineReference"
                }
            }
        ],
        "type": "ScheduleTrigger",
        "typeProperties": {
            "recurrence": {
                "frequency": "Day",
                "interval": 1,
                "startTime": "2020-05-05T13:01:00.000Z",
                "timeZone": "UTC",
                "schedule": {
                    "minutes": [
                        1
                    ],
                    "hours": [
                        13
                    ]
                }
            }
        }
    }
}

但是如果我尝试像这样将它添加到 JSON 文件中:

"Microsoft.DataFactory/factories/triggers": {
        "properties": {
            "runtimeState": "-",
            "typeProperties": {
                "recurrence": {
                    "interval": "=",
                    "frequency": "="
                }
            }
        }
    }

它永远不会出现在 Azure Pipeline Releases 的 Override 部分。

触发器是否存在此 ADF CI/CD 功能?我怎样才能在这里实现我的目标?

结果 runtimeStatearm-template-parameters-definition.json 中没有遵守触发器。

经过更多研究,路径更加清晰 - 我可以通过从 Azure Devops 市场编辑 Powershell script Microsoft has provided or use an ADF custom task 来实现我想要的。