'trigger azure data factory pipeline

Is there any way to manually trigger a azure data factory pipeline? I would like to have this feature for a demo.

I know that we can suspend and resume a pipeline using power shell scripts.

Thanks.



Solution 1:[1]

Here is what I would do.

  1. create everything without pipeline active periods
  2. When you want to run the demo update active periods to dates in the past
  3. If you want to run again, update to another date in the past

Updating dates via powershell would look something like this

Set-AzureDataFactoryPipelineActivePeriod -DataFactoryName $DataFactoryName -PipelineName $PipelineName -StartDateTime $DateInPast -EndDateTime $DateOneDayLessInPast -ResourceGroupName $ResourceGroupName -Force

Solution 2:[2]

try following url via postman:

https://management.azure.com/subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelines/{pipelineName}/createRun?api-version=2018-06-01

replace {} with your values

remember to add OAuth token. :)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrew Moll
Solution 2 Ashu