Create Build Server, DevOps Branch, Pipeline for Dynamics 365 Finance and Operations

In our last session, we created a new DevOps Project and connected it with the Lifecycle Services (LCS) project. I will suggest you go through with that post before continuing further.
Applies to:
  • Dynamics 365 Finance
  • Dynamics 365 Supply Chain Management
  • Dynamics 365 Commerce
DevOps build pipeline
Let’s continue with our Dynamics 365 Finance and Azure DevOps series. In this post, we will create and deploy a new Build Server that will be configured later for Continues Integration (CI) / Continues Delivery (CD). We will also create and talk briefly around the branching, and what build server does automatically with the deployment.

Video tutorial – Subscribe

DevOps: Create Agent Pool (optional)

Before we deploy a build server we need to make sure that we have an Agent Pool available for us to use. Every DevOps Project comes with the Default agent pool that you can use or create one specifically for D365.
If you want to create a new agent pool, on DevOps, go to Project settings > Pipelines > Agent pools and click Add pool.
Note: Agent pool is the link between your physical build server and DevOps.
Create Agent Pool
Create a new Agent Pool

LCS: Deploy Build Server

You can deploy a build tier-1 server either as a managed environment (License) or as a cloud-hosted environment (azure subscription).
To deploy, go to LCS Project, Environments / Cloud-hosted environments section, and hit the + sign.
Select the environment topology and environment name & size.
The main point here is Visual Studio Team Services parameters.
You can select a build agent name, this can be anything but it is good practice that it matches your build env name in case we are going to have multiple build servers/agents.
For agent pool, you can go with the Default that comes with every DevOps Projects or create a new one as we did above.
Branch name, the one for which this build server is going to be setup it’s default build pipeline. Don’t worry about this much as this same server can be used to create builds against multiple branches using more pipelines. We will talk about this in our next post.
Change other parameters if you want but at this point, we are done with the important settings. You can Save and hit Next.
LCS will put the deployment in Deploying status.
Note, it will take somewhere around 4-5 hours for deployment to be completed.

DevOps: Main Branch and Build Pipeline

Once the deployment is done, the system will create the repository as a trunk with main branch. And a build pipeline will also be setup for you that is ready to go.
DevOps > Repos > Files > D365FO > Trunk > Main
In our next post, we will discuss branching in more detail.  But for now, one thing you can remember that as of now we only have one branch Main with two folders, Metadata & Projects.
Metadata, this folder stores the model and our customizations or any ISV packages that you might be using and want to include in source control.
Projects, this folder keeps all of our Visual Studio projects/solutions.
D365FO Main Branch
DevOps Trunk
A build pipeline is also created automatically with the build server deployment. A build pipeline (earlier build definition) holds all the settings that we might use to create a build, compile the code, database sync, deploy reports, create a package, upload package to DevOps etc.
DevOps build pipeline
DevOps Pipeline
DevOps build pipeline
DevOps Pipeline
This completes our discussion on how to create/setup a build server.
We will talk about development server, branching, visual studio workspace mapping etc.
If you liked the story and want to see more of this kind of content, please follow us on twitter @CursorRun or FB @CursorRun
Default image
Rahul Sharma
Rahul is a technology enthusiast, solutions architect, trainer, and blogger, working on various Microsoft and open source solutions with more than 18 years of industry experience. He specially takes interest in designing enterprise applications, cloud integrations, IoT, and other architecture rich business solutions. Rahul is a guest author with us and shares his knowledge through technology blog posts.
Articles: 59


Enter your email address below to subscribe to our website. We will never flood your inbox with unwanted emails & you can always unsubscribe anytime.

One comment

  1. Hi Rahul,
    Thanks for the information about configuring devops and d365fo environment’s.
    can you please share some details on the VSTS setup, workspace configuration for build machine ?

Leave a Reply

%d bloggers like this: