---
title: Configure pipeline
description: "Now we need to create a new pipeline, you can just import [this template](https://github.com/microsoft/Dynamics365-Xpp-Samples-Tools/blob/master/CI-CD/Pipeline-Samples/xpp-classic-ci.json) from the newly created [X++ (Dynamics 365) Samples and Tools Github project](https://github.com/microsoft/Dynamics365-Xpp-Samples-Tools). After importing the template we’ll modify it a bit. Initially, it will look like…"
url: "https://ariste.info/dynamics365almguide/configure-pipeline/"
updated: "2024-08-25"
category: "Legacy Guide / Azure hosted build for Dynamics 365 Finance & SCM"
---

# Configure pipeline

Now we need to create a new pipeline, you can just import [this template](https://github.com/microsoft/Dynamics365-Xpp-Samples-Tools/blob/master/CI-CD/Pipeline-Samples/xpp-classic-ci.json) from the newly created [X++ (Dynamics 365) Samples and Tools Github project](https://github.com/microsoft/Dynamics365-Xpp-Samples-Tools). After importing the template we’ll modify it a bit. Initially, it will look like this:

![2020 04 24 14 35 07 1](http://ariste.info/wp-content/uploads/2020/04/2020-04-24-14_35_07-1.png)
Azure hosted build: Default imported pipeline

As you can see the pipeline has all the steps needed to generate the DP, but some of them, the ones contained in the Dynamics 365 tasks, won’t load correctly after the import. **You just need to add those steps to your pipeline manually and complete its setup.**

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#pipeline-root](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#pipeline-root)Pipeline root

![2020 04 24 14 38 27](http://ariste.info/wp-content/uploads/2020/04/2020-04-24-14_38_27.png)

You need to select the Hosted Azure Pipelines for the Agent pool, and vs2017-win2016 as Agent Specification.

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#get-sources](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#get-sources)Get sources

![DevOps mappings](http://ariste.info/wp-content/uploads/2020/04/2020-04-24-14_42_07.png)
Azure hosted build: Our mappings

I’ve mapped 2 things here: our codebase in the first mapping and the Build folder where I’ve added the solution and config files. If you’ve placed these files inside your Metadata folder you don’t need the extra mapping.

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#nuget-install-packages](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#nuget-install-packages)NuGet install Packages

This step gets the nugets from our artifacts feeds and the installs to be used in each pipeline execution.

![2020 04 25 12 41 47 1](http://ariste.info/wp-content/uploads/2020/04/2020-04-25-12_41_47-1.png)
Azure hosted build: nuget install

The command uses the config files we have uploaded to the Build folder, and as you can see it’s fetching the files from the *$(build.sourcesDirectory)\Build* directory we’ve configured in the Get sources step. If you’ve placed those files in a diferent place you need to change the paths as needed.

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#update-model-version](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#update-model-version)Update Model Version

This is one of the steps that are displaying issues even though I got the Dynamics 365 tools installed from the Azure DevOps marketplace. If you got it right you probably don’t need to change anything. If you have the same issue as me, just add a new step and select the “Update Model Version” task and change the fields so it looks like this:

![Update Model Version](http://ariste.info/wp-content/uploads/2020/04/2020-04-24-14_53_56-1.png)
Azure hosted build: Update Model Version

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#build-solution](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#build-solution)Build solution

![MSDyn365 & Azure DevOps ALM 14](http://ariste.info/wp-content/uploads/2020/09/2020-09-25-09_33_56.png)
Build solution step

In the build solution step, you have a wildcard in the solution field: **\\*.sln. If you leave this wildcard it will build all the projects you have in the repo and, depending on the number of projects you have, the build could time out.

I solve this by selecting a solution, that contains all the models I have, that I have placed in the Build folder in my repo, and update that solution if you add or remove any model.

Thanks to [Ievgen Miroshnikov](https://twitter.com/IevgenMir) for pointing this out!

There could be an additional issue with the rnrproj files as [Josh Williams points out in a comment](http://ariste.info/en/2020/05/azure-hosted-build-dynamics365-finance-scm/#comment-5584). If your project was created pre-PU27 try creating a new solution to avoid problems.

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#create-deployable-package](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#create-deployable-package)Create Deployable Package

This is another one of the steps that are not loading correctly for me. Again, add it and change as needed:

![2020 04 24 14 55 32](http://ariste.info/wp-content/uploads/2020/04/2020-04-24-14_55_32.png)
Azure hosted build: Create Deployable Package

#### [http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#add-licenses-to-deployable-package](http://ariste.info/en/msdyn365-azure-devops-alm/?preview_id=955&preview_nonce=20b305adad&preview=true&_thumbnail_id=2694#add-licenses-to-deployable-package)Add Licenses to Deployable Package

Another step with issues. Do the same as with the others:

![2020 04 24 14 57 35](http://ariste.info/wp-content/uploads/2020/04/2020-04-24-14_57_35.png)
Azure hosted build: Add Licenses to Deployable Package

And that’s all. You can queue the build to test if it’s working. For the first runs you can disable the steps after the “Build solution” one to see if the nugets are downloaded correctly and your code built. After that try generating the DP and publishing the artifact.

You’ve configured your Azure hosted build, now it’s your turn to decide in which cases will you use the self-hosted or the azure hosted build.

#### Subscribe!

Receive an email when a new post is published
