Hello,
after installing BC 2019 Wave2 OnPremise on local successfully with your help I'll try to get the latest version installed into docker. There are many different hurdles to handle as all the colleagues in the internet have written.
Install BC 2020 Wave2 with the following command will work for me: New-BCContainer -accept_eula -containerName 'test' -useBestContainerOs
Install the same version with the following scrip(part) fails:
New-NavContainer -accept_eula:$accept_eula `
-containername $containername `
-auth Windows `
-Credential $credential `
-includeCSide `
-alwaysPull `
-doNotExportObjectsToText `
-usessl:$false `
-updateHosts `
-assignPremiumPlan `
-shortcuts Desktop `
-imageName $navdockerimage `
-additionalParameters $additionalParameters
Setup-NavContainerTestUsers -containerName $containername -password $credential.Password
Maybe this is an older script version? Because "IncludeCSide" is obsolete. Deleting this part will result in this error: "Member Xyz/abc was not found in group administrators."
Changing the script to "- auth NavUserPassword" as written in the net results in this:
Container xyz successfully created.... Your program license does not allow you to publish 'User Login Test Library".
I'm running with Win10 and Workgroup, not domain.
So I'm stepping from one issue to the other not knowing what to do at all.
Do you have any helpings for me?
Best regards
BCDeveloper
Your script should work after you remove Setup-NavContainerTestUsers -containerName $containername -password $credential.Password.
Try below script
$credential = New-Object pscredential 'bcuser', (ConvertTo-SecureString -String 'BCp@ssword' -AsPlainText -Force)
New-BCContainer -accept_eula -assignPremiumPlan `
-imageName "mcr.microsoft.com/businesscentral/sandbox" `
-containerName "localbc" `
-auth UserPassword `
-credential $credential `
-licenseFile $licenseFile `
-updateHosts `
-includeAL `
-alwaysPull
if you don't have partner license, you can remove -licenseFile
You can try this script.
New-NavContainer -accept_eula -containerName "local" -auth NavUserPassword -imageName "mcr.microsoft.com/businesscentral/sandbox" -alwayspull -updatehosts -licenseFile "C:\License.flf" -includeAL
Sohail Ahmed
953
YUN ZHU
848
Super User 2025 Season 1
Mansi Soni
602