Manual template import to data factory

Anonymous
2022-09-15T19:49:37.583+00:00

Hi All,

We have two data factory pipelines using common dataset.

One of the pipeline along with dependent dataset was migrated to different ADF environment.

Now when trying to migrate the second pipeline to the same target environment it is creating new dataset with a suffix “1” at the end of dataset name.

We dont want to have multiple copies of same dataset in target ADF environment.

Cannot delete the existing dataset and rename the new one by removing suffix as this will break the dataset link to the first pipeline.

What is the workaround to this? We expect both the pipelines to reference same dataset in target environment same as the source ADf env.

Note: we are manually exporting and importing pipeline template.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2022-09-23T22:42:37.69+00:00

    Hello @Anonymous ,

    Thank you for the detailed explanation.

    When you use "Import from pipeline template" for the 1st pipeline, the datasets will publish to the QA environment with the original name.

    When you use "Import from pipeline template" for the 2nd pipeline, since the datasets have already been published, ADF creates new datasets with the name dataset1(so you will end up with two datasets)

    This is expected behavior.

    Workaround:

    Option 1)

    Export ARM template from Dev and Import the template using custom deployment.

    In this case, all resources- pipelines, datasets, linked services, triggers, etc. will be exported into the ARM template.

    If you don't want to export all resources, you can edit the template and publish the changes accordingly. I believe this is more aligned with your requirement.

    244403-image.png

    244416-image.png

    Option 2)

    Using source control.

    With Git Integration, you can publish all the changes from one environment to another.

    In this case, you can't export a single pipeline. All published changes will move to the other environment.

    244432-image.png

    I hope this helps.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

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.