Identifying the Count of Activities within a Pipeline in an Azure Data Factory

Problem Statement :

As of Aug 15,2021 ; there is a limitation in Azure Data Factory V2 wherein a user can add only 40 activities within a pipeline and in case if the number of activities within a pipeline exceeds 40, the user gets the below error:

So how can one get the count of activities within an existing pipeline.

Prerequisites :

  1. Azure Data Factory
  2. Powershell

Solution :

  1. Open Powershell in admin mode and import the Azure SDK modules by executing the below commands :
Import-Module Az.Accounts
Import-Module Az.DataFactory

2. Install the custom module by executing the below command

Install-Module -Name AzDataFactoryV2Activities

3. Now the environment is set for us to execute the commands to fetch the pipeline details .

To get the list of all pipelines in an ADF and its corresponding activity list and activity count, execute the below command:

Get-AzDataFactoryV2Activities -ResourceGroupName “<<RGName>>” -DataFactoryName “<<ADFName>>”
To get the details of a specific pipeline in an ADF and its corresponding activity list and activity count, execute the below command:

Get-AzDataFactoryV2Activities -ResourceGroupName “<<RGName>>” -DataFactoryName “<<ADFName>>” -PipelineName “<<PipelineName>>”

Output Results :

  1. Overall ADF output

2. Specific Pipeline output

This would avoid manually counting the number of activities within any pipelines.

Published by Nandan Hegde

Microsoft Data MVP |Microsoft Data platform Architect | Blogger | MSFT Community Champion I am a MSFT Data Platform MVP and Business Intelligence and Data Warehouse professional working within the Microsoft data platform eco-system which includes Azure Synapse Analytics ,Azure Data Factory ,Azure SQL Database and Power BI. To help people keep up with this ever-changing landscape, I frequently posts on LinkedIn, Twitter and to his blog on https://datasharkx.wordpress.com. LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66 GitHUB Profile : https://github.com/NandanHegde15 Twitter Profile : @nandan_hegde15 MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942

4 thoughts on “Identifying the Count of Activities within a Pipeline in an Azure Data Factory

  1. Thanks for the article. It does not count for the inner level activities in ADF pipeline. Is there any workaround for this?

    Like

    1. Thank you Balan for highlighting this :). I am now working on updating the Powershell module to scan across inner activities as well which was missed out. Would update here once that Powershell is updated.

      Like

      1. @Balan, thank you for your patience. The Powershell module is upgraded to identify all the activities including the inner activities as well. Thank you for highlighting the issue.

        Like

Leave a comment

Design a site like this with WordPress.com
Get started