【问题标题】:Azure Data Factory CI/CD for Schedule Triggers Not Working用于计划触发器的 Azure 数据工厂 CI/CD 不起作用
【发布时间】:2020-11-02 17:46:39
【问题描述】:

对于触发器,看起来只有 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 的“覆盖”部分中。

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

【问题讨论】:

    标签: azure azure-pipelines azure-data-factory azure-pipelines-release-pipeline


    【解决方案1】:

    原来runtimeState 的触发器在arm-template-parameters-definition.json 中没有被遵守。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-17
      • 1970-01-01
      • 2016-12-30
      • 1970-01-01
      相关资源
      最近更新 更多