Yesterday, I had the pleasure of co-hosting the Office Hours on the Ready To Go Program with Peter Borring and Dmitry Chadayev.
If you are unfamiliar with the Ready To Go program, you should read here: http://aka.ms/readytogo and you can read more about the Office Hours calls here: http://aka.ms/readytogoofficehours
We have changed the format of the Office Hours calls to be topic based and yesterdays topic was CI/CD. Office Hours are not a deep dive into functionality, but instead we did a short presentation and demo and then we opened up for questions.
A number of the questions was: Will we be able to find the links from the presentation after the call?
We decided that I would include the essence of the presentation in a blog post, so here you go…
Having read a number of different definitions of CI/CD, I kind of like this one: https://stackify.com/what-is-cicd-whats-important-and-how-to-get-it-right/
Christian Melendez explains about the benefits of CI and CD and why every professional software development company should have these processes implemented. Read it, it is worth while.
OK, so far so good, but how to get started?
Even though it seems like an easy question to answer, the answer isn’t straightforward. It really depends on whether you want to do everything yourself or you want to oursource your CI/CD to a partner.
Microsoft provides a number of building blocks you can use to setup CI/CD. These building blocks will make your life much easier, but you actually could setup CI/CD without these
Microsoft also releases insider builds of next minor and next major release of Business Central. You will get access to these through Microsoft Collaborate (http://aka.ms/collaborate) and through this, you can setup pipelines, which will test your app towards future versions of Business Central to see whether there are any breaking changes planned.
Microsoft doesn’t provide any plug and play toolbox for setting up Continuous Integration and Continuous Delivery for your Dynamics 365 Business Central solutions, but a few partners have created solutions, which you could use or use as inspiration. These are included in the below table as 3rd party tools.
The above table shows that doing things yourself comes with a high price in effort, but less cost, whereas outsourcing obviously is the other way around.
The following list of services and tools are the ones we new of at the time of the presentation. I will happily add other solutions to this list if I hear about them.
NAVBaaS (Build as a Service) is a SaaS product that supports the entire build process for AL as well as for C/AL without the need to write scripts or deploy/manage infrastructure.
In practice this means that an Azure DevOps task will become available in your Azure DevOps instance, the infrastructure is automatically deployed and you’ll be able to run your first build in +/- 30 minutes.
Unlike other solutions NAVBaaS is a service, meaning that it consists of code (everyone runs on the same/latest version), infrastructure, monitoring and support.
In addition to the out of the box CI solution, you can also get help on a consultancy basis to set-up your CI/CD pipelines or Azure DevOps as a whole.
ALOps is an extension in Azure DevOps that enables you to easily create build and release pipelines.
Instead of using generic PowerShell steps, you’re using dedicated AL(Ops) steps to Build or Release your AL Apps.
This even facilitates a visual help by the “DevOps Step Assistant” that guides you through all possible parameters, or you could use the yaml editor with IntelliSense.
All this makes it super easy and stable to set up your own simple or complicated pipeline however you want.
AdvaniaGIT delivers Source Control and Development Environment Management for Microsoft Dynamics NAV and Dynamics 365 Business Central.
For CI/CD there is some assistance for C/AL projects and AL projects is using yaml and the functions shipped in NavContainerHelper.
AdvaniaGIT is OpenSource and available on github through the links below.
AdvaniaGIT has a VS Code add-in for managing and maintaining things directly from VS Code.
Tools and Pipeline samples shared by Kamil Sacek.
Tools were used in Kamil’s TechDays 2019 session (also shared below)
TechDays 2019 session
In this section we shared some links to blogs, where you can read more from people who tried this and succeeded. Note, that the posts on my blog are the oldest and some details might have changed since
https://never-stop-learning.de (Michael Megel)
http://www.mynavblog.com (Krzysztof Bialowas)
Hands on lab
DevOps Pipelines Documentation
Support for Docker
During the Q&A I think we managed to answer most questions, but in some cases the questions involved very deep knowledge about Azure DevOps, which we are unable to answer.
We are very happy to share our experiences (as are a number of our partners), but as stated earlier, we do not provide a plug-and-play CI/CD toolkit, you will need to select how you want to do things and get going…