---
title: Set up the new Azure DevOps tasks for Packaging and Model Versioning
description: "#### Update Model Version task This is a simple one, you just have to add it to your build definition under the current task, disable the original one, and you're done. If you have any filters, excluding models for example,…"
url: "https://ariste.info/dynamics365almguide/set-up-the-new-azure-devops-tasks-for-packaging-and-model-versioning/"
updated: "2024-08-25"
category: Legacy Guide / Azure Pipelines
---

# Set up the new Azure DevOps tasks for Packaging and Model Versioning

#### Update Model Version task

This is a simple one, you just have to add it to your build definition under the current task, disable the original one, and you're done. If you have any filters, excluding models for example, you will need to create the filter in the *Descriptor Search Pattern* field using [Azure DevOps pattern syntax](https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/file-matching-patterns?view=azure-devops&WT.mc_id=DOP-MVP-5003976).

#### Create Deployable Package task

This task is going to replace the current *Generate packages* task. To set it up correctly, we need to make a couple of changes to the default values it comes with:

##### X++ Tools Path

![Set up the new Azure DevOps tasks for Packaging and Model Versioning](http://ariste.info/wp-content/uploads/2019/09/2019-09-05-11_25_12-AXZ-Dev-Build-DP-test-new-Azure-DevOps-Services.png)

This is the physical directory of your build VM where the bin folder is located. The AosService folder is normally on the K drive in VMs deployed in the client's subscription. This will probably change when we move to a model without VMs for builds.

The path to the drive can be changed to $(ServiceDrive), resulting in a path like $(ServiceDrive)\AOSService\PackagesLocalDirectory\bin.

##### Location of the X++ binaries to package

![Set up the new Azure DevOps tasks for Packaging and Model Versioning](http://ariste.info/wp-content/uploads/2019/09/2019-09-05-11_29_55-AXZ-Dev-Build-DP-test-new-Azure-DevOps-Services.png)

The task comes with this field filled in with $(Build.BinariesDirectory) by default, but this has not worked for our builds, perhaps that variable is not in the proj file. You just need to change it to $(Agent.BuildDirectory)\Bin and the DP will be generated without any problems.

##### Filename and path for the deployable package

![Set up the new Azure DevOps tasks for Packaging and Model Versioning](http://ariste.info/wp-content/uploads/2019/09/2019-09-05-11_33_28-AXZ-Dev-Build-DP-test-new-Azure-DevOps-Services.png)

The path in the image should be changed to *$(Build.ArtifactStagingDirectory)\Packages\AXDeployableRuntime_$(Build.BuildNumber).zip*. You can leave it without the *Packages* part, but then you will have to change the *Path to Publish* field of the *Publish Artifact Package* task in the definition:

#### Task Add Licenses to Deployable Package

This task adds licenses to an existing Deployable Package. Remember that the DP path must be the same as the one you configured in the *Create Deployable Package* task.

#### Subscribe!

Receive an email when a new post is published
