PowerShell module

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name navcontainerhelper -RequiredVersion

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Freddy Kristiansen


(c) 2017 Freddy Kristiansen. All rights reserved.



Add-FontsToNavContainer Backup-NavContainerDatabases Compile-AppInNavContainer Compile-ObjectsInNavContainer Convert-AlcOutputToAzureDevOps Convert-ModifiedObjectsToAl Convert-Txt2Al Copy-FileFromNavContainer Copy-FileToNavContainer Create-AadAppsForNav Create-AadUsersInNavContainer Create-MyDeltaFolder Create-MyOriginalFolder Download-File Enter-NavContainer Export-ModifiedObjectsAsDeltas Export-NavContainerDatabasesAsBacpac Export-NavContainerObjects Generate-SymbolsInNavContainer Get-CompanyInNavContainer Get-LocaleFromCountry Get-NavContainerAppInfo Get-NavContainerCountry Get-NavContainerDebugInfo Get-NavContainerEula Get-NavContainerEventLog Get-NavContainerGenericTag Get-NavContainerId Get-NavContainerImageName Get-NavContainerIpAddress Get-NavContainerLegal Get-NavContainerName Get-NavContainerNavUser Get-NavContainerNavVersion Get-NavContainerOsVersion Get-NavContainerPath Get-NavContainers Get-NavContainerServerConfiguration Get-NavContainerSession Get-NavContainerSharedFolders Get-NavContainerTenants Get-NavVersionFromVersionInfo Import-ConfigPackageInNavContainer Import-DeltasToNavContainer Import-NavContainerLicense Import-ObjectsToNavContainer Import-TestToolkitToNavContainer Install-NavContainerApp Install-NAVSipCryptoProviderFromNavContainer Invoke-NavContainerCodeunit New-CompanyInNavContainer New-CSideDevContainer New-DesktopShortcut New-LetsEncryptCertificate New-NavContainer New-NavContainerNavUser New-NavContainerTenant New-NavContainerWindowsUser Open-NavContainer Publish-NavContainerApp Remove-CompanyInNavContainer Remove-ConfigPackageInNavContainer Remove-DesktopShortcut Remove-NavContainer Remove-NavContainerSession Remove-NavContainerTenant Renew-LetsEncryptCertificate Replace-NavServerContainer Restart-NavContainer Setup-NavContainerTestUsers Start-NavContainer Start-NavContainerAppDataUpgrade Stop-NavContainer Sync-NavContainerApp Test-NavContainer UnInstall-NavContainerApp UnPublish-NavContainerApp Wait-NavContainerReady Write-NavContainerHelperWelcomeText


This module has no dependencies.

Release Notes
Bugfix - Setting timezone didn't work with all timezones
Automatically use hyperv isolation if host operating system doesn't match container os
New flag on Compile-AppInNavContainer -AzureDevOps to output the result in AzureDevOps/VSTS compatible format
New function Convert-ALCOutputToAzureDevOps
New function Add-FontsToNavContainer
Added ClickOnce switch to New-NavContainer
Added new parameters to New-NavContainer: WebClientPort, FileSharePort, ManagementServicesPort, ClientServicesPort, SoapServicesPort, ODataServicesPort and DeveloperServicesPort
Bugfix #163: Perform Sync-NavTenant after all objects have been imported in Import-TestToolkitToNavContainer
Added mode and appVersion to Sync-NavContainerApp
Bugfix #143: CSIDE desktop shortcut authentication method follows service tier authentication method
Check that windows authentication user is not a Microsoft user in New-NavContainer
Added appVersion to Start-NavContainerAppDataUpgrade
Ensure that NavContainerHelper is running as administrator
Bugfix #153: Ensure that timeZone is set correctly
Added function Generate-SymbolsInNavContainer
Include test in app.json in Compile-AppInNavContainer
Bugfix #nav-docker/251: Create-AadUsersInNavContainer now creates all users (not only the first 100)
Added function Get-NavCompanyInNavContainer
Always enable API Services in container
Throw error if new-navcontainer fails (instead of just displaying error)
Update navcontainerhelper welcome text with some missing functions
Added function Stop-NavContainer
Added function Start-NavContainer
Added function Restart-NavContainer
Added function New-LetsEncryptCertificate
Added function Renew-LetsEncryptCertificate
Bugfix: Invoke-NavContainerCodeunit fails if the user already exists
Added ReplyTo address to Aad App, which matches Business Central Sandbox Containers
Bugfix: docker restart caused Windows Client deployed by -includeCSide to loose ACSUri setting
Rewrote Create-AadAppsForNAV to use AzureAD powershell package instead or AzureRM
Added function Create-AadUsersInNavContainer
Add generatesymbolreference=1 when Importing objects using Import-ObjectsToNavContainer or ImportTestToolkitToNavContainer
Set license to NULL from dbo.[dbproperty] and dbo.[tenantproperty] tables when exporting databases to bacpac
Use containername for hosts file when using -updatehosts (like remove-navcontainer)
Added parameter isolation to new-navcontainer to allow Windows Server to use hyperv isolation
Fixed a number of ScriptAnalyzer errors/warnings in NavContainerHelper
Empty the dbo.[Tenant License State] table when exporting databases to bacpac
Added function Backup-NavContainerDatabases
Added function New-CompanyInNavContainer (thanks Mike Glue)
Added function Remove-CompanyInNavContainer (thanks Mike Glue)
Added function Import-ConfigPackageInNavContainer.ps1 (thanks Mike Glue)
Added function Remove-ConfigPackageInNavContainer.ps1 (thanks Mike Glue)
Added function Get-NavContainerServerConfiguration (thanks Richard Robberse)
In Get-NavContainerPath - if you start the path with a colon (:), then the path refers to a path inside the container and not a shared folder
Bugfix: Create-AadAppsForNav required reboot after setup
Added tenant parameter (0..many tenants) to Export-NavContainerDatabasesAsBacpac
Object handling functions will not ask for credentials if not specified
BugFix: doNotOpen in Get-NavContainerEventLog was string - should be switch
Compile-AppInNavContainer had a dependency on the WebClient, this dependency is removed
BufFix: Compile-AppInNavContainer did not work on multitenant containers
BugFix: New-NavContainer will not crash when running the generic image with a NAV 2013 DVD
Updated tests
Bugfix: Invoke-NavContainerCodeunit didn't work with multitenancy
Bugfix: Premium user didn't work with multitenancy
Bugfix: Hardcoded containername in Setup-NavContainerTestUsers
BugFix: Create-AadAppsForNav throws an error when the owner of the Excel App Registration already exists
Add function Get-NavContainerNavUser to return users from the container
Add function Invoke-NavContainerCodeunit to invoke a codeunit in a container
Add function Compile-AppInNavContainer to compile an extension v2 app in a container (preview)
Added publisher and version to unpublish-navcontainerapp
Add function Setup-NavContainerTestUsers to setup test users with different plans and permissions
Add parameter -AssignPremiumPlan to new-navcontainer in order to assign premium plan to the default super user
BugFix: New-NavContainerTenant and Remove-NavContainerTenant falsely asks for SQL credentials if not specified
BugFix: -includeCSide and -shortcuts None caused an error that $customconfig didn't exist
Added -fullObjectsFolder to export-ModifiedObjectsAsDeltas to receive full objects
Added TLS1.2 support to Download-File
New-NavContainer now supports specifying a .zip file (UNC or URL) as NavDvdPath
Add function Get-NavContainerTenants to list all tenants from a multitenant container
BugFix: ExportTxtSkipUnlicensed doesn't get set in Export-NavContainerObject when using NavUserPassword authentication
Added -compile switch to Import-DeltasToNavContainer
Added -deltaFolder to Export-ModifiedObjectsAsDeltas
Increased timeout in Wait-NavContainerReady
Bugfix: Get-LocaleFromCountry returned blank for finnl and a lot of other finxx localizations
Add -settings on Windows Client shortcut to ensure correct clientsettings.config usage
Silence output of clearing modified flag
Add function Import-NavContainerLicense
Add parameters -sync and -install to Publish-NavContainerApp
Add filter parameter to Convert-ModifiedObjectsToAl and Export-ModifiedObjectsAsDeltas (default is Modified=1)
Support for inline scripts, URLs and .zip files in myscripts on New-NavContainer
Bugfix: Remove-NavContainer doesn't remove entries in hosts file
Remove-NavContainer to fail if it cannot remove the containerFolder (open files etc.)
Bugfix: Convert-ModifiedObjectsAsAl didn't include page extensions due to new parameter on Compare-NavApplicationObject
Bugfix: Use docker pull in New-NavContainer
Bugfix: New-NavContainer seems to hang
Add sync parameter on Publish-NavContainerApp
Added ExportTxtSkipUnlicensed to Export-NavContainerObjects
Add uninstall parameter on UnPublish-NavContainerApp
Add startup option to New-DesktopShortcut
Add generatesymbolreference=1 when Compiling objects using Compile-ObjectsInNavContainer
AzureSQL support for multitenancy
Add install parameter on Publish-NavContainerApp
Bugfix: Didn't work with "old" images
Bugfix: Create-AadAppsForNAV wasn't exported and was missing help
Check whether AAD is supported by Docker image
Add function Create-AadAppsForNav
Add parameter authenticationEmail to New-NavContainer
Remove default memory limit when running Windows Server as Docker host
Bugfix: Remove Test Tool shortcut when removing nav containers
Bugfix: Issue 89 CSide with external SQL and different port
Update Welcometext
Add support for multitenancy
Add switch -multitenant to new-navcontainer
Add function New-NavContainerTenant
Add function Remove-NavContainerTenant
Add function New-NavContainerNavUser
Add function New-NavContainerWindowsUser
Add function Get-NavContainerEventLog
Add function Export-NavContainerDatabasesAsBacpac
Change default filter in Compile-ObjectsInNavContainer to compiled=No
Add Shortcut for opening WebClient with Test Tool page if TestToolKit is included
Updated Readme
Add nav specific tags when running generic image
Check for tag tag when running fetching the tag (support generic image)
Check container name validity
Add test running generic image
Added switch for enabling SymbolLoading (dual development), default is off
Added function Import-TestToolkitToNavContainer
Added parameter -includeTestToolkit to New-NavContainer to automatically include TestToolkit objects
Include more information during start of new-navcontainer (and output the docker run command if it fails early)
Fix report preview when running docker images or earlier
Bugfix CSide desktop shortcut was always set to windows auth
Bugfix: Copying files to/from containers didn't work on Windows 10
Bugfix: Export-NavContainerObjects with a strange error if sharing the folder used for export directly
Export-NavContainerObjects now supports txt files and fob files -exportTo parameter replaces -exportToNewSyntax
Added Get-NavContainers to get all Nav containers
Add pipeline support for Remove-NavContainer and Remove-NavContainerSession (to allow Get-NavContainers | Remove-NavContainer)
Added Get-NavContainerDebugInfo
Show ContainerName in prompt in Enter-NavContainer

Version History

Version Downloads Last updated 1,565 8/18/2019 143 8/16/2019 367 8/15/2019 1,312 8/8/2019 1,647 8/2/2019 813 7/31/2019 662 7/28/2019 2,399 7/15/2019 1,649 7/6/2019 1,170 7/2/2019 754 6/27/2019 571 6/26/2019 163 6/25/2019 998 6/19/2019 1,029 6/16/2019 377 6/14/2019 276 6/13/2019 1,246 6/6/2019 2,357 5/24/2019 518 5/23/2019 4,216 5/3/2019 470 4/30/2019 544 4/27/2019 394 4/25/2019 177 4/24/2019 105 4/24/2019 587 4/19/2019 234 4/17/2019 934 4/14/2019 321 4/12/2019 69 4/11/2019 12 4/11/2019 202 4/11/2019 142 4/11/2019 4 4/11/2019 26 4/10/2019 3,488 3/27/2019 31 3/27/2019 1,385 3/19/2019 196 3/18/2019 2 3/18/2019 2,612 3/6/2019 632 3/4/2019 1,028 2/27/2019 355 2/25/2019 3,606 2/6/2019 1,253 1/30/2019 157 1/29/2019 2,186 1/17/2019 167 1/17/2019 840 1/13/2019 4,258 12/11/2018 77 12/11/2018 179 12/10/2018 1,210 12/4/2018 639 11/30/2018 41 11/30/2018 161 11/30/2018 3,212 11/16/2018 137 11/16/2018 369 11/15/2018 1,738 11/5/2018 2,315 10/28/2018 2,167 10/23/2018 6,995 9/30/2018 2,195 9/22/2018 (current version) 799 9/18/2018 701 9/16/2018 2,328 9/2/2018 6,952 7/9/2018 229 7/6/2018 986 6/28/2018 845 6/23/2018 81 6/22/2018 242 6/21/2018 241 6/19/2018 8 6/19/2018 1,299 6/10/2018 6 6/10/2018 545 6/6/2018 5,931 4/12/2018 16 4/12/2018 30 4/12/2018 10 4/12/2018 9 4/12/2018 17 4/11/2018 556 4/5/2018 312 4/2/2018 732 3/22/2018 3 3/22/2018 300 3/19/2018 2,482 3/6/2018 21 3/6/2018 3 3/6/2018 12 3/5/2018 33 3/5/2018 496 2/24/2018 483 2/16/2018 82 2/16/2018 20 2/16/2018 9 2/15/2018 3 2/15/2018 2,009 2/3/2018 8 2/3/2018 834 1/8/2018 4 1/8/2018 1,151 12/19/2017 105 12/16/2017 294 12/12/2017 748 11/30/2017 37 11/30/2017 62 11/29/2017 83 11/27/2017 1,748 11/12/2017 31 11/11/2017 227 11/9/2017 33 11/9/2017 521 11/7/2017 150 11/7/2017 4 11/7/2017 4 11/7/2017 39 11/6/2017 37 11/6/2017 388 11/3/2017 236 10/26/2017 6 10/26/2017 7 10/26/2017 208 10/21/2017 3 10/21/2017 4 10/21/2017 15 10/21/2017
Show less