'Why Azure DevOps Release do not remove Pipeline from Azure Data Factory?

I have Data Factory Dev environment. I have removed few pipelines in master branch. Then saved and published.

I have Azure DevOps Release, which has stage Test. I can succesfully create release. I expect now that Dev and Test ADF is identical.

But I still see removed pipeline in Data Factory Test environment. Release pipeline did not remove the pipeline. I'm sure that this has worked in past, but not any more.

I tested to add new pipeline to Data Factory Dev. Release pipeline successfully added pipeline to Data Factory Test environment.

What could be wrong?



Solution 1:[1]

This task can be added to an Azure DevOps pipeline to delete Linked Services, Datasets, Dataflows, Pipelines and/or Triggers from an existing Azure Data Factory. Please have a try.

# Azure Data Factory Delete Items
# Delete Azure Data Factory items
- task: delete-adf-items@2
  displayName: 'Delete items from DataFactory'
  inputs:
    #azureSubscription: # Required
    #ResourceGroupName: # Required
    #DatafactoryName: # Required
    #ServiceFilter: # Optional
    #DataflowFilter: # Optional
    #DatasetFilter: # Optional
    #PipelineFilter: # Optional
    #TriggerFilter: # Optional
    #Sorting: descending # Option: Ascending, Descending
    #continue: true # Optional
    #Throttle: 5 # Optional
    #detectDependancy: false # Option: true, false

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kangcheng Jin-MSFT