I'm facing an issue with collaboration branch(Main) while syncing up with ADF publish

Vineeth Kalangi 40 Reputation points
2024-08-22T12:52:05.5+00:00

After merging changes from feature branches to Main I'm hitting on publish button to create ARM template. As a devops engineer I have written CICD pipeline and moved to Main. I have enabled triggers whenever I have push to adf_publish branch. The issue is ARM template is successfully generated but the parameter file for other region is in Main branch. How do I integrate with the asf_publish while deploying it to Prod region. Or should I change trigger to main branch in CICD, then how would I pick up ARM template?

Also, Few linked services are not seen in Main branch ARM template whereas it is seen adf_publish branch. Do we need to sync code with adf_publish branch as well in GIT?

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

Accepted answer
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2024-08-23T06:19:27.93+00:00

    Hi Vineeth Kalangi ,

    Welcome to Microsoft Q&A platform and thanks for posting your query here.

    If the publish branch is out of sync with the main branch and contains out-of-date resources despite a recent publish, you can use either of the below solutions:

    • Option 1: Use Overwrite live mode functionality

    It publishes or overwrites the code from your collaboration branch into the live mode. It considers the code in your repository as the source of truth.

    Code flow: Collaboration branch -> Live mode

    force publish code from collaboration branch

    • Option 2: Disconnect and reconnect Git repository

    It imports the code from live mode into collaboration branch. It considers the code in live mode as source of truth.

    Code flow: Live mode -> Collaboration branch

    1. Remove your current Git repository
    2. Reconfigure Git with the same settings, but make sure Import existing Data Factory resources to repository is selected and choose Collaboration branch (same branch)
    3. Create a pull request to merge the changes to the collaboration branch.

    Note : It is only necessary to create and merge a pull request if you are working in a repository that does not allow direct commits. In most organizations, submissions into the repository require review before merging so the best practice is usually to use this approach. But in some cases no review is required, in which case it isn't necessary to create and merge a pull request, but changes can be directly committed to the collaboration branch.

    Choose either method appropriately as needed.

    Reference: Troubleshooting Git integration | Stale publish branch

    Hope it helps. Kindly accept the answer by clicking on Accept answer button. Thankyou

    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.