Running a Container-Based Development Environment

Original URL…

Dynamics 365 Business Central is available as a container-based image, ready for running on a Windows system with Docker installed. The container-based approach is used when you need access to both the AL development environment and the C/SIDE development environment.

Install and configure Docker

Install Docker and configure it for Windows Containers. Please choose the version of Docker that is appropriate for the host operating system.

Run the container-based image

Run the following command in a Command Prompt as Administrator to run a Docker image of Dynamics 365 Business Central:

docker run -e accept_eula=Y -m 4G microsoft/dynamics-nav

Note

When you run the Docker run command, it will start downloading the image if it does not already exist. A container consists of multiple layers, only the needed layers are downloaded.

At this point, you can open your internet browser and type in the Web client URL. You will be prompted with a login dialog, where you can login with the NAV Admin Username/Password displayed.

The NavContainerHelper module

To support the use of containers, optional PowerShell scripts are available, which support setup of development environments. Use the NavContainerHelper to work with containers. On a Windows 10 or Windows Server 2016, start Powershell as an Administrator and type:

install-module navcontainerhelper -force

To see which functions are available in the NavContainerHelper module use the following command:

Write-NavContainerHelperWelcomeText

To get quickly get started, run the following command from the NavContainerHelper module:

new-navcontainer -accept_eula -containerName test -imageName microsoft/dynamics-nav:devpreview

The NavContainerHelper will create a folder on the C:\ drive called DEMO and will place all files underneath that folder. The DEMO folder will be shared to the container for transfer of files etc. If you do not specify a username and a password, it will ask for your password and use the current Windows username. If you specify your windows password, the container setup will use Windows Authentication integrated with the host. The NavContainerHelper will also create shortcuts on the desktop for the Dynamics 365 Business Central Web client, a container prompt, and a container PowerShell prompt.

The navcontainerhelper module also allows you to add the -includeCSide switch in order to add the Dynamics 365 Business Central Windows client and C/SIDE to the desktop and export all objects to a folder underneath C:\DEMO\Extensions for the object handling functions from the module to work.

See Also

Getting Started with AL
Keyboard Shortcuts
AL Development Environment
FAQ for Developing in AL

Anuncios

Dynamics NAV – Resources

Walkthrough: Publishing, Raising, and Subcribing to an Event in Microsoft Dynamics NAV

This walkthrough uses a simple example scenario to demonstrate how to program events in the application.


Restoring a Database in a Different Domain

You may need to restore a Microsoft Dynamics NAV database in a situation where the users you had previously created are no longer available. For example, if you have restored your database in a different Windows domain or on a different network altogether. In this situation, you must take extra steps to assure that you will be able to run the Microsoft Dynamics NAV Windows client and connect to the database. More…

USE restored_db;
TRUNCATE TABLE "User Personalization";
TRUNCATE TABLE "User Property";
TRUNCATE TABLE "Access Control";
TRUNCATE TABLE "User";
GO

Action Image Library

The RoleTailored client includes images that you can use on actions that display in the Action Pane and command bar menus. To add an image to an action, you must provide the name of the image. For more information…