ariste.info
  • MSDyn365 & Azure DevOps ALM
  • Get my book!
  • ISV License Generator
  • About me
    • About me
    • Subscribe
    • Contact
  • Logo
  • LinkedIn

Unified experience ALM

  • Welcome to the new ALM guide
    • Introduction
    • Prerequisites
  • Create and prepare Azure DevOps organization and project
    • Create an Azure DevOps organization
    • Create an Azure DevOps project
    • Enable TFVC projects in Azure DevOps
    • Add CI/CD agents with an Azure subscription
  • Unified development environment
    • What are unified developer environments?
    • Transition to a capacity-based model
    • Deploying a unified developer environment using PowerShell
    • Deploy an UDE environment from PPAC
    • Upgrade version in a Unified Development Environment
    • Useful links
  • Using Visual Studio
    • Connect Visual Studio to your UDE
    • Deploy code to a Unified Development Environment
  • Pipelines
    • What’s new in the pipelines?

Legacy Guide

  • Welcome
    • Welcome!
  • Dynamics 365 for Finance & Operations & Azure DevOps
    • Intro
    • Package and model planning
    • Azure DevOps
    • First steps
    • The build server
    • Visual Studio
    • Some advice
    • Branching strategies
  • Azure Pipelines
    • Builds
    • Continuous integration
    • Gated check-ins
    • Set up the new Azure DevOps tasks for Packaging and Model Versioning
  • Azure hosted build for Dynamics 365 Finance & SCM
    • Intro
    • Azure agents
    • How does it work?
    • What do I need?
    • Azure DevOps artifacts
    • Prepare Azure DevOps
    • Configure pipeline
    • Update for version 10.0.18 and greater
  • Azure DevTest Labs powered builds
    • Intro
    • Azure DevTest Labs
    • Getting and preparing the VHD
    • Create a DevTest Labs account
    • Creating the VM
    • Preparing the VM
    • Create a new image
    • Azure DevOps pipelines
    • Run the build
    • Times
    • Show me the money
    • Some final remarks
  • Add and build .NET projects
    • Intro
    • Build .NET in your pipeline
    • Add a C# project to FnO
    • Build pipelinebui
    • Things I don’t like/understand/need to investigate
  • Release Pipelines
    • Intro
    • Setting up Release Pipeline in Azure DevOps for Dynamics 365 for Finance and Operations
    • AAD app creation
    • Create the release pipeline in DevOps
    • Creating the LCS connection
    • New Azure DevOps release tasks: MSAL authentication and ADAL deprecation
  • Automation
    • Update VMs using pipelines and d365fo.tools
    • Builds
    • Releases
    • But I like to add some human touch to it
    • Extra bonus
    • Update a variable in a release
  • LCS DB API
    • Call the LCS Database Movement API from your Azure DevOps Pipelines
    • Automating Prod to Dev DB copies
    • Restore a data package with Azure DevOps Pipelines
  • Secure your Azure Pipelines with Azure Key Vault
    • Azure Key Vault
    • Securing your Azure DevOps Pipelines
View Categories
  • ariste.info
  • Dynamics 365 F&O Dev ALM guide
  • Legacy Guide
  • Azure Pipelines
  • Set up the new Azure DevOps tasks for Packaging and Model Versioning

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.

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

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

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

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
What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can I help?

How can I help?

Gated check-ins

2 Comments

  1. Dawid 2 years ago Reply

    This section is not translated to english 🙁

    • Adrià Ariste Santacreu Post Author 2 years ago Reply

      Thanks Dawid, I’ve fixed it! I think it was lost when I moved servers some weeks ago and did a mass replace on SQL 🤣

Write A Comment Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Table of Contents
  • Update Model Version task
  • Create Deployable Package task
    • X++ Tools Path
    • Location of the X++ binaries to package
    • Filename and path for the deployable package
  • Task Add Licenses to Deployable Package
  • Dynamics 365 Community
  • Subscribe!
  • Microsoft MVP
  • LinkedIn
  • Privacy Policy
  • Contact
  • About me

© 2024 ariste.info. Designed by CazaPelusas.

Top

    Type above and press Enter to search. Press Esc to cancel.