繁体   English   中英

如何将参数从 Schedule 类型触发器传递到 ADF 管道?

[英]How to pass parameters to an ADF pipeline from Schedule type trigger?

有没有办法将参数从 Schedule 类型触发器传递到 ADF 管道?

是的你可以。

首先,将参数添加到您的管道:

在此处输入图像描述

然后您可以编辑触发器的 json 文件:

{
    "name": "trigger2",
    "properties": {
        "annotations": [],
        "runtimeState": "Started",
        "pipelines": [
            {
                "pipelineReference": {
                    "referenceName": "pipeline3",
                    "type": "PipelineReference"
                },
                "parameters": {
                    "test1": "111"
                }
            }
        ],
        "type": "ScheduleTrigger",
        "typeProperties": {
            "recurrence": {
                "frequency": "Minute",
                "interval": 1,
                "startTime": "2020-08-06T02:18:00.000Z",
                "timeZone": "UTC"
            }
        }
    }
}

这是文档:

https://docs.microsoft.com/en-us/azure/data-factory/concepts-pipeline-execution-triggers#schedule-trigger-definition

在我这边没问题,请在你这边试试。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM