ADF CICD how to retain the pipelines

DineshV-1571 60 Reputation points
2024-03-19T16:07:29.8333333+00:00

Using CICD process in Azure DevOps, I want to keep the pipelines to the UAT (they are getting deleted)

I am trying to use -deletedeployment false but seems this option is not working. Still the pipleines are getting deteted.

Is there any other way to retain the pipelines during the CICD process from the Dev to UAT?

Thanks for your help.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,699 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bhargava-MSFT 31,021 Reputation points Microsoft Employee
    2024-03-19T18:14:02.7966667+00:00

    Hello DineshV-1571

    Welcome to the Microsoft Q&A forum.

    Using CICD it only merges the changes, it doesn't delete/add any objects.

    In your case, every pipeline got deleted that didn't exist on DEV - this is because of the above reason I mentioned (CICD only merge the changes)

    The pre and post deployment scripts stop triggers before deployment and restart them afterward.

    and your understanding is wrong with respect to -deleteDeployment $false

    The -deleteDeployment flag is used to specify the deletion of the ADF deployment entry from the deployment history in ARM.

    https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-delivery-sample-script

    enter image description here

    If you are looking to cherry pick specific pipelines using CICD, you need to consider isolating the artifacts in a separate branch and use the validate and deploy operation to deploy the artifacts from that branch.

    https://learn.microsoft.com/en-us/azure/synapse-analytics/cicd/source-control#unsupported-features

    https://techcommunity.microsoft.com/t5/azure-synapse-analytics-blog/automating-the-publishing-of-workspace-artifacts-in-synapse-cicd/ba-p/3603042

    I hope this helps.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.