Connect Azure DevOps repository to another Azure DevOps repository from different account

0 votes

I have an organizational Microsoft account and a Visual Studio Professional subscription. Also, I have my own Microsoft account and a project in Azure DevOps. I need is to connect my own DevOps repository to the DevOps project in my organizational account.

The goal is to set up CI/CD and deploy my project in Azure under my Visual Studio Professional subscription. I found OAuth configurations settings under Organization Settings in DevOps but there are no options to connect another DevOps repository. The workflow:

  1. Push changes to my own DevOps repo
  2. Get these changes in the organizational DevOps repo
  3. Deploy to Azure under organizational Visual Studio Professional Subscription.

If there is some way to omit the 2nd step it would be great. steps done:

  1. https://docs.microsoft.com/en-us/appcenter/build/connect - indicates there should be some way to achieve this goal, but I found nothing in google
  2. Tried to use DevOps starter in Azure, but there is only one DevOps organization - the one from my organizational account and no way to add an external one.
  3. Azure DevOps -> Organization Settings -> OAuth configurations: there are only GitHub and BitBucket source types.
Mar 15, 2022 in DevOps on Cloud by Kichu
• 19,040 points
614 views

1 answer to this question.

0 votes

You can consider these two directions:
Import your own repo into your organizational DevOps project and develop code directly in the newly imported repo or if you have a specific reason to develop in your own repo and then share the changes to organizational DevOps repo, then you need synchronization between these two reps:
1. You can follow Azure DevOps Repos synchronization between organizations to make cross-organization synchronization between your two repos.
Assuming your own repo is RepoA, and the copy of RepoA in organizational Microsoft account is RepoACopy. Follow the steps shared in the link above, after that RepoACopy will get the changes when something changes in RepoA.
2. Create a pipeline for RepoACopy to deploy to Azure under organizational Visual Studio Professional Subscription. And set the CI/CD trigger for this pipeline.
Then every time you have changes in your own RepoA => RepoACopy get changes => CI/CD pipeline will start to deploy the changes to Azure. It should meet your expected workflow.

Transform your career and elevate your expertise with our DevOps Course!

answered Mar 16, 2022 by narikkadan
• 63,600 points

Related Questions In DevOps on Cloud

0 votes
1 answer
0 votes
0 answers

How to delete unwanted artifacts in Azure DevOps

Numerous NuGet packages are created by our ...READ MORE

Dec 13, 2022 in DevOps on Cloud by Edureka
• 13,620 points
2,187 views
0 votes
0 answers

How to get all repos in Azure DevOps?

I'm working on several Azure DevOps initiatives. ...READ MORE

Dec 13, 2022 in DevOps on Cloud by Edureka
• 13,620 points
1,005 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer

What is the correct way to setup Azure Artifacts in Azure DevOps?

Refer: https://docs.microsoft.com/en-us/azure/devops/artifacts/get-started-maven?view=azure-devops this will show you how to create ...READ MORE

answered Apr 5, 2022 in DevOps on Cloud by narikkadan
• 63,600 points
483 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP