Search code examples
azure-devopscontinuous-integrationdynamics-crmvpnazure-devops-server

Dynamics 365 OnPremise + VPN = CI/CD process within AzureDevOps


welcome community.

currently, our customer has Dynamics 365 On-premise infrastructure, additionally more connected applications to CRM. All is available thru VPN.

Case is to implement CI/CD process. i would like to use AzureDevOps Cloud. Code management solutions = bitbucket. Of course its not a problem to implement full ci/cd process within OnPremise Dynamics but the question is HOW we manage to bypass VPN?

i have found some tips in MS documentation with Agents and more but i am not sure if this will work. any suggestion? thank you

enter image description here


Solution

  • enter image description here

    If you are using Dynamics 365 On-premise. You will need to configure self-hosted agents on your local machine. See here for detailed steps.

    Since D365 is behind a proxy. You will need to configure your self-hosted agent to run behind a web proxy. See detailed steps here.

    enter image description here

    There is no need to install Azure devops server. You just need to configure your azure pipeline to run on your self-hosted agent created in above steps. So that your azure pipeline can access to the on-premise resources.

    When you configure your pipeline(see below for more information about configure pipeline), Choose the Agent pool(Default for below example) where the self-hosted agent resides to run your pipeline on your self-hosted agent.

    enter image description here

    enter image description here

    You need to create azure pipeline for CI/CD process within azure devops.

    Below are the examples in detailed steps to configure a classic pipeline in azure devops to implement CI/CD for Dynamics 365.

    1, CI/CD for Dynamics 365 CE using Azure DevOps

    2, Build Azure DevOps Pipelines for Dynamics 365 CRM/Power Platform

    If you are to configure release pipeline for CD process. You probably will need to create deployment groups to deploy to on-premise D365. See here to provision agents to deployment groups.

    3, Check D365 forum for more threads about integration D365 with azure devops.

    You will much likely encounter some problems while configuring azure pipeline. Please raise new threads about each specific problem your encountered in configuring azure pipeline.