Automated Way to Identify the Dependencies on a Linked Service in an Azure Data Factory

Problem Statement :

As of Dec 17,2022 ; One can identify the dependencies on a Linked Service in an Azure Data Factory by logging in to the Azure Data Factory via Portal and accessing the linked Services under Manage Section.

And Clicking the Related number values to get the Dependencies details as seen below :

A) Linked Service Dependent on Linked Service

B) Dataset Dependent on Linked Service

C) Pipeline Dependent on Linked Service

So how can one get the related / dependent objects on a linked service in an Azure Data Factory in an automated way.

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 AzDataFactoryV2LinkedServiceDependencies

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

To get the list of all Linked Services in an ADF and its corresponding dependent objects, execute the below command:

Get-AzDataFactoryV2LinkedServiceDependencies -ResourceGroupName “<<RGName>>” -DataFactoryName “<<ADFName>>”
To get the details of a specific Linked Services in an ADF and its corresponding dependent objects, execute the below command:

Get-AzDataFactoryV2LinkedServiceDependencies -ResourceGroupName “<<RGName>>” -DataFactoryName “<<ADFName>>” -LinkedServiceName“<<LinkedServiceName>>”

Output Results :

  1. Overall ADF output

2. Specific Linked Service output

This would avoid manually identifying the dependent objects of a linked service in Azure Data Factory.

Similarly for Synapse, refer the below blog :

Automated Way to Identify the Dependencies on a Linked Service in Synapse

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

Leave a comment

Design a site like this with WordPress.com
Get started