Thursday, January 9, 2020

Activating All triggers in ADF using powershell

Scenario:

I have an ADF having more than one pipelines. For each pipeline more than one triggers.

I need to activate all the triggers in ADF, how?

Here is the solution for it.


PowerShell:

$ADFName=<Your ADF Name>
$ResourceGroupName=<Your Resource Group Name>



$triggersADF = Get-AzureRmDataFactoryV2Trigger $ADFName  -ResourceGroupName $ResourceGroupName
$triggersADF | ForEach-Object { Start-AzureRmDataFactoryV2Trigger -ResourceGroupName $ResourceGroupName -DataFactoryName $ADFName -Name $_.name -Force }




No comments:

Post a Comment

Activating All triggers in ADF using powershell

Scenario: I have an ADF having more than one pipelines. For each pipeline more than one triggers. I need to activate all the triggers i...