Quick answer: You can stop and start Azure Data Factory triggers with the Az.DataFactory PowerShell cmdlets Stop-AzDataFactoryV2Trigger and Start-AzDataFactoryV2Trigger. Stopping a started trigger prevents it from invoking pipelines until it is started again.

Prerequisites:
1. Access to the Azure Data Factory resource.
2. Install and authenticate the current Az PowerShell module.

Stop all triggers in Azure Data Factory

$adf_name = 'adfname'
$resourcegroup_name = 'resourcegroupname'

$triggersADF = Get-AzDataFactoryV2Trigger -DataFactoryName $adf_name -ResourceGroupName $resourcegroup_name
$triggersADF | ForEach-Object {
    Stop-AzDataFactoryV2Trigger -ResourceGroupName $resourcegroup_name -DataFactoryName $adf_name -Name $_.Name -Force
}

Start all triggers in Azure Data Factory

$adf_name = 'adfname'
$resourcegroup_name = 'resourcegroupname'

$triggersADF = Get-AzDataFactoryV2Trigger -DataFactoryName $adf_name -ResourceGroupName $resourcegroup_name
$triggersADF | ForEach-Object {
    Start-AzDataFactoryV2Trigger -ResourceGroupName $resourcegroup_name -DataFactoryName $adf_name -Name $_.Name -Force
}

Available on Microsoft Store

SSRS Reports Migration Wizard

A simple Windows tool for migrating SSRS reports, data sources, and related configurations between report servers.

Use trigger control in Azure DevOps CI/CD

For CI/CD deployments, Microsoft provides a pre- and post-deployment script pattern that stops triggers before deployment and starts them afterward. The current guidance also includes a version that targets only modified triggers instead of stopping every trigger.

- task: AzurePowerShell@5
  displayName: Stop ADF Triggers
  inputs:
    scriptType: 'FilePath'
    scriptPath: '../ADFTemplates/PrePostDeploymentScript.ps1'
    ScriptArguments: '-armTemplate "<arm-template-location>" -ResourceGroupName <resource-group-name> -DataFactoryName <data-factory-name> -predeployment $true -deleteDeployment $false'
    azurePowerShellVersion: 'LatestVersion'
    pwsh: true

Pro tips:
Stopping all triggers is useful for maintenance, but for CI/CD consider Microsoft’s pre/post-deployment script that can stop and restart only the triggers affected by the deployment.

See more

Visual Studio Marketplace

SSIS Catalog Migration Wizard

Extend Visual Studio with an easy way to migrate SSIS Catalog projects.

Kunal Rathi

With over 15 years of experience in data engineering and analytics, I've assisted countless clients in gaining valuable insights from their data. As a dedicated supporter of Data, Cloud and DevOps, I'm excited to connect with individuals who share my passion for this field. If my work resonates with you, we can talk and collaborate.