How to integrate OnPrem Azure DevOps Server with the cloud one

0 votes
My firm has the Azure DevOps online version where we have all our projects and repo's. We were not able to configure CI/CD for the repo's because our internal server network doesn't have access to the internet.

To overcome this issue, we built a new server that has access to the internet and also to the internal network. On the new server, we installed and configured Azure DevOps Server 2019. We don't want to migrate our repo's from the cloud version to the online version.

I am trying to link the OnPrem repo to the cloud repo but it was not working. I issued a PAT on the cloud version and added it as a service connection under Pipelines in the OnPrem version but still, I am not able to see and link the cloud repo's.

I can clone the repo from the cloud to the OnPrem server but that will not get the latest code as the code is being checked in the cloud repo's

Can anyone please guide me on how to link both of them, please.

Thanks!!!
Mar 16, 2022 in DevOps & Agile by Edureka
• 13,640 points
375 views

1 answer to this question.

0 votes

The optimal solution is to run self-hosted build agents on a server that is open to the internet and setup an agent pool in Azure DevOps Services for them. You'll want to use Deployment Groups for deployments, and install deployment group agents on target servers, where they'll just need outbound 443 access to communicate with Azure DevOps Services.

If that isn't possible, you'll have to install deployment agents on the build machine, which will then see your other on-premise servers. However, this is an unsatisfactory solution because you'll either have to rely on WinRm capabilities for deployments, or expose too much network between your build server and other on-premise servers.

Take a look at the agent-documentation and especially the communication subsection:

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops

Or this old blog post, from which the communication section originates:

https://devblogs.microsoft.com/devops/deploying-to-on-premises-environments-with-visual-studio-team-services-or-team-foundation-server/

Because Azure DevOps Services and Azure DevOps Server are essentially the same product, I don't believe there is a useful way to connect them. Given that you wish to keep the repos in Azure DevOps Services, I assume (but don't know) that you're aiming to merge Azure DevOps Services with on-premise builds and deploys. In other words, you want to operate build and deployment group agents on-premises.

answered Mar 24, 2022 by gaurav
• 22,940 points

Related Questions In DevOps & Agile

+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How to work with api if the site requires an SSL certificate?

My DevOps API is here. User stories ...READ MORE

Dec 15, 2022 in DevOps & Agile by Edureka
• 11,450 points
53 views
0 votes
0 answers

how to use azure devOps?

What is azure DevOps and how do ...READ MORE

Dec 20, 2022 in DevOps & Agile by Edureka
• 12,890 points
41 views
0 votes
1 answer

Azure DevOps Wiki: How can I link the subpages in the parent page?

Unfortunately, Azure Devops does not have the ...READ MORE

answered Mar 8, 2022 in DevOps & Agile by gaurav
• 22,940 points
148 views
0 votes
1 answer

Azure DevOps Wiki: How can I link the subpages in the parent page?

Unfortunately, Azure Devops does not have the ...READ MORE

answered Mar 8, 2022 in DevOps & Agile by gaurav
• 22,940 points
1,591 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