【发布时间】:2020-11-02 17:46:39
【问题描述】:
对于触发器,看起来只有 pipelines pipeline 和 typeProperties 块可以基于 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