Not able to deleted the linked service referenced in other linked service

sachin gupta 376 Reputation points
2022-05-03T22:26:40.773+00:00

Hello Everyone,

I am testing the Azure data factory deployment using ARM Templates and deleting the ADF instance (Data factory pipeline, linked services, data sets, data flow, Trigger etc.) using Azure Data Factory Delete item in-built task in DevOps Pipeline from azure Devops before deploying to UAT and production. All items deleted as per task outcome but there is one linked service which didn't delete.
Giving error= deleting LS_1 Linked Service: the document cannot be deleted since it is referenced by LS_2. basically the LS_2 deleted and it is not showing in the UAT ADF environment, only LS_1 is showing.

please find attached screenshot. please share your valuable suggestion on this how to resolve it.
Thanks

198614-12.jpg

198633-13.jpg

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
263 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,117 questions
{count} vote

Accepted answer
  1. AnnuKumari-MSFT 32,011 Reputation points Microsoft Employee
    2022-05-05T09:14:20.137+00:00

    Hi @sachin gupta ,
    Thankyou for using Microsoft Q&A platform and posting your query.
    As I understand your issue here, you are trying to delete linked service via DevOps pipeline , however, it's throwing error saying there is dependency on another linked service .

    Although you have confirmed that you can no longer see the linked service LS_2 in the ADF workspace , could you please check the same switching to live mode in your ADF workspace and ensure LS_2 is not showing up .


0 additional answers

Sort by: Most helpful