In Dev and QA environments, it is occasionally necessary to pause all Azure Data Factory V1 pipelines. PowerShell makes quick work of an otherwise manual task.
Login-AzureRmAccount Select-AzureRmSubscription -SubscriptionId "PUT-Y0UR-SUBSCR1PT10N-1D-H3R3" $RGName = "ResourceGroupName" $DFName = "DataFactoryName" $pipelines = Get-AzureRmDataFactoryPipeline -DataFactoryName $DFName -ResourceGroupName $RGName foreach( $pl in $pipelines) { Suspend-AzureRmDataFactoryPipeline -DataFactoryName $DFName -ResourceGroupName $RGName -Name $pl.PipelineName #Resume-AzureRmDataFactoryPipeline -DataFactoryName $DFName -ResourceGroupName $RGName -Name $pl.PipelineName }
Leave a Reply
You must be logged in to post a comment.