+1 vote
in Azure by
How do you manually execute the Data factory pipeline?

1 Answer

0 votes
by
A pipeline can run with Manual or On-demand execution.

To execute the pipeline manually or programmatically, we can use the PowerShell command:

Invoke-AzDataFactoryV2Pipeline -DataFactory $df -PipelineName

"DemoPipeline" -ParameterFile .\PipelineParameters.json

The term ‘DemoPipeline’ above is the pipeline’s name that will run, and the ‘ParameterFile’ specifies the path of a JSON file with the source and sink path.

Also, the format of the JSON file is to be passed as a parameter to the above PowerShell command is:

{

  "sourceBlobContainer": "MySourceFolder",

  "sinkBlobContainer": "MySinkFolder"

}
...