Despicable me
Despicable me

Reputation: 700

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

Is there a way to pass parameters to an ADF pipeline from Schedule type trigger?

Upvotes: 1

Views: 5561

Answers (1)

suziki
suziki

Reputation: 14080

Yes, you can.

First, add parameter to your pipeline:

enter image description here

And then you can edit the json file of your trigger:

{
    "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"
            }
        }
    }
}

This is the doc:

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

On my side it is no problem, please have a try on your side.

Upvotes: 1

Related Questions