How to Import resource into feature branch from publish branch in ADF through CLI?

Shravan Ghongade 66 Reputation points
2022-04-28T06:07:08.047+00:00

How to Import resource into feature branch from publish branch in ADF through CLI?

I wanted to create ADO task where I can run the pipeline and Import the resources into the feature branch from publish branch via CLI or other script.

Note - Ignore the warning!

197241-adf.png
![197202-image.png][2]

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

Accepted answer
  1. MartinJaffer-MSFT 26,236 Reputation points
    2022-04-29T03:01:44.16+00:00

    Hello @Shravan Ghongade ,
    Thanks for the question and using MS Q&A platform.

    As we understand the ask here is how to copy assets from the post-publish branch to another branch . This branch contains ARM templates rather than the definitions found in other branches. Given that these are two different formats, it doesn't really make sense to pull from the adf_publish branch to another. It would be like taking apart a salad to make the vegetables. The information is mostly there, but in a form ready for Azure to eat (deploy).

    So if what you really want is to get definitions from the last publish, what you really need to do, is go look at your repository to the last commit to the collaboration branch before publishing. Take that commit and either create a new branch from it, or cherry pick items. That becomes a git operation, not a Data Factory operation. If you made no changes to the collaboration branch since publishing, you can just use the current collaboration branch instead of earlier commits.

    Please do let me if you have any queries.

    Thanks
    Martin


    • 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
    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.