Skip to main content

How to Leverage Visual Studio Online and Azure Pipelines to migrate your development environment to the Cloud!


With my previous blog, I had explained how to configure CI/CD for Microsoft Dynamics Business Central. The only drawback when it comes to developing in VS Code Online is that it works with Base Operating System as Linux. Which implies that the ALC(Application Language Compiler) built for Windows has to also work on Linux but it doesn't.
Because of which it becomes difficult to compile your Business Central projects in VS Code Online.
In this blog I will be attempting to collaborate VS Code Online with Azure Pipelines to get things running with auto-deployment.


  • Microsoft Dynamics 365 Business Central
  • VS Code Online
  • Azure DevOps
  • Azure Pipelines

Books & References:


1. Setup CI/CD for Microsoft Dynamics Business Central:
In order for this system to work the major skeleton is taken up by CI/CD process.
Refer my blog below.

2. Setup Azure DevOps to pull and push the code from VS Code Online using Git:
If you want to refer, how to setup VS Code Online, refer here
Coming back to the configurations and setup of how VS Code Online is setup, you will understand that the Base OS is Linux.
If you are lucky enough your Base OS will have Aptitude as the main package manager to install the Git App.

To install Git App if you don't have installed:
Install Git App using Apt Get

After Git is installed, clone your repository once used in template format of the CI/CD with the ALC inside your project folder.
After Cloning the Repository
Later as I modified the code  changing the message in VS Code Online
Changing Code in AL Code
After the code has been changed, you can commit and push the newly changed code
Committing the Code 
Azure DevOps after committing the code

In Azure DevOps after committing the code, you will find that the Azure Pipelines will start Compiling the App and will deploy it to Business Central.

Azure Pipeline Triggering the PowerShell to compile and deploy the package
After the app is deployed into Business Central, you will find the message as changed in the AL Code.
After App is deployed in Business Central
Although VS Code Online is truly online the capabilities or the core functionality lies within the compiler that is being used to build your code. Azure DevOps is one such tool where your post development pipelines can be set and tuned after your need. this blog, we saw how VS Code Online can be integrated with Azure DevOps to get your IDE Completely Online.

I hope this is what most of us were looking forward too and Microsoft I believe will soon get ALC on Linux as well so that there are no links in between.


Popular posts from this blog

Understanding and How to use APIs Business Central - 2

In my last blog post (Business Central API -1 ) on Creating API in Business Central, we discussed all the commonly used properties of the page, query, and controls like field and data-item. In today's blog, we will be diving deeply into the validation of the data passed through the API endpoint, how it enters into the source tables and is manipulated to be inserted/modified into single or multiple tables.
Also, I will be demonstrating how APIs are to be used.

Microsoft Dynamics Business Central (SaaS)VS Code( Language Extension( V1 from Business Central On-Premise DVD
Books & References:
API V1 from Business Central On-Premise DVDAPI(V1.0) for Business Central (Click Here)API(Beta) for Business Central (Click Here)
Understanding API in Business Central 1. BINDSUBSCRIPTIONS: Use to trigger IntegrationEvent for the Codeunit stated in parameters whenever the function calling BI…

Creating APIs in Business Central - 1

While writing a blog on Automated Testing in Business Central, I was going through sample apps provided by Microsoft and realized that the complexity is nowhere close to what examples Microsoft has provided on In this blog, I will try to explain how APIs work and how to be creative with the implementation. Also, an API which were in beta are finally out with version V1.0 in the April 2019 release let's see some important key things from development aspects.
This blog is going to be theoretical one kindly bear with me.

Microsoft Dynamics Business Central (SaaS)VS Code( Language Extension( V1 from Business Central On-Premise DVD
Books & References:
API V1 from Business Central On-Premise DVDAPI(V1.0) for Business Central (Click Here)API(Beta) for Business Central (Click Here)

Key Requirements:
API source table must have an Id(GUID) field per record for m…

Enum Object in Business Central - How to create and how to extend!

Since the dawn of Business Central Era (2nd April 2018 - Today), there are many new data types introduced by Microsoft.
One such data type is Enum(Enumeration). Essentially, what enumeration is having a single select value with multiple options at a given time!
Well, I know what your thinking what about the 'Option' data type.
Anyways, enough of talking let's just dive in!

Disclaimer:The knowledge in this blog is true and complete to the best of authors and publishers knowledge. The author and publisher disclaim any liability in connection with the use of this information.
Microsoft Dynamics Business Central (SaaS or On-Premise)
VS code with AL Language extension

1. Enum as an Object:
Just like Tables and Pages, Enum behaves like an Object.
Note that Extensible means that the Enum Object can be extended in another module. By default, this property is set to TRUE.

Enums and Enum Extensions behave differently. They follow a different number se…