Git Product home page Git Product logo

nav-arm-templates's Introduction

Business Central/NAV ARM Templates

In order to deploy ARM templates from your fork, use: https://freddyk.azurewebsites.net/api/deploy?template=https://raw.githubusercontent.com/<githubusername>/nav-arm-templates/<branch>/<template>.json

Where

  • <githubusername> is your GitHub user name (location of the fork)
  • <branch> is the branch you want to deploy from
  • <template> is the name of the template to use

Available templates

Name Description
getbc Get Azure VM with Business Central on Docker with standard questionnaire
getbcext Get Azure VM with Business Central on Docker with extended questionnaire
buildagent Get Azure VM pre-configured as Build Agent for GitHub or Azure DevOps
getnav Get Azure VM with NAV on Docker with standard questionnaire
getnavext Get Azure VM with NAV on Docker with extended questionnaire

Note: You can add parameters for prepopulating fields in the ARM template.

Examples

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

nav-arm-templates's People

Contributors

dnsl9r avatar freddydk avatar gunnargestsson avatar mazhelez avatar megel avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar sergeyol avatar stevewithey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nav-arm-templates's Issues

Cannot find path 'C:\myfolder\SetupConfiguration.ps1' because it does not exist

Got an Error about missing file.

1:44:35 PM at , C:\demo\setupVm.ps1: line 249
1:44:35 PM at , C:\demo\SetupNavContainer.ps1: line 20
1:44:35 PM Cannot find path 'C:\myfolder\SetupConfiguration.ps1' because it does not exist.
1:44:32 PM Installing OpenXML 2.5
1:44:28 PM Installing SQL Native Client
1:44:12 PM Installing Visual C++ Redist
1:44:10 PM Status: Downloaded newer image for mcr.microsoft.com/businesscentral/sandbox:14.0.29537.32452-de-ltsc2019
1:44:10 PM Digest: sha256:cbd9f4330e30db2a8dae734eb3d8f39b9731441483d2017d829df6d59aad1f5d
[...]
1:26:24 PM 14.0.29537.32452-de-ltsc2019: Pulling from businesscentral/sandbox
1:26:17 PM Pulling mcr.microsoft.com/businesscentral/sandbox:14.0.29537.32452-de-ltsc2019 (this might take ~30 minutes)
1:26:16 PM Adding Landing Page to Startup Group
1:26:16 PM Add Import navcontainerhelper to PowerShell profile
1:26:16 PM Disabling Server Manager Open At Logon
1:26:16 PM Show hidden files and file types
1:26:16 PM Enabling Font Download in IE
1:26:16 PM Enabling File Download in IE
1:26:15 PM Enabling Docker API
1:26:15 PM Starting docker
1:26:12 PM SetupVm, User: vmadmin
1:26:00 PM Launch SetupVm
1:25:41 PM Installing AzureAD PowerShell package
1:22:35 PM Installing AzureRM PowerShell package
1:22:30 PM SetupStart, User: ***$
1:20:10 PM Restarting computer and start Installation tasks
1:18:39 PM Using Lets Encrypt certificate
1:18:39 PM Using Nav Container Helper version 0.6.2.9
1:18:22 PM Installing Latest Nav Container Helper from PowerShell Gallery
1:18:22 PM Downloading C:\DEMO\Install-VS2017Community.ps1
1:18:22 PM Downloading c:\demo\SetupStart.ps1
1:18:22 PM Downloading c:\demo\SetupVm.ps1
1:18:22 PM Downloading c:\demo\SetupAAD.ps1
1:18:22 PM Downloading c:\demo\SetupNavContainer.ps1
1:18:22 PM Downloading c:\demo\SetupDesktop.ps1
1:18:22 PM Downloading c:\myfolder\SetupWebClient.ps1
1:18:21 PM Turning off IE Enhanced Security Configuration
1:18:21 PM Creating Connect.rdp
1:18:21 PM Downloading C:\inetpub\wwwroot\web.config
1:18:21 PM Downloading C:\inetpub\wwwroot\Microsoft.png
1:18:21 PM Downloading C:\inetpub\wwwroot\line.png
1:18:21 PM Downloading C:\inetpub\wwwroot\status.aspx
1:18:21 PM Downloading C:\inetpub\wwwroot\default.aspx
1:16:02 PM Installing Internet Information Server (this might take a few minutes)
1:15:40 PM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json
1:15:40 PM Initialize, user: ***$
1:15:40 PM Running Windows Server 2019 Datacenter
1:15:40 PM Starting initialization

Deployment Parameters:

 "parameters": {
      "vmName": {
        "type": "String",
        "value": "example"
      },
      "timezoneId": {
        "type": "String",
        "value": "W. Europe Standard Time"
      },
      "acceptEula": {
        "type": "String",
        "value": "Yes"
      },
      "remoteDesktopAccess": {
        "type": "String",
        "value": "*"
      },
      "winRMAccess": {
        "type": "String",
        "value": "-"
      },
      "operatingSystem": {
        "type": "String",
        "value": "Windows Server 2019 with Containers"
      },
      "vmSize": {
        "type": "String",
        "value": "Standard_D2_v3"
      },
      "storageAccountType": {
        "type": "String",
        "value": "Standard_LRS"
      },
      "vmAdminUsername": {
        "type": "String",
        "value": "vmadmin"
      },
      "bcAdminUsername": {
        "type": "String",
        "value": "admin"
      },
      "azureSqlAdminUsername": {
        "type": "String",
        "value": "sqladmin"
      },
      "adminPassword": {
        "type": "SecureString"
      },
      "includeAL": {
        "type": "String",
        "value": "No"
      },
      "bcDockerImage": {
        "type": "String",
        "value": "mcr.microsoft.com/businesscentral/sandbox:14.0.29537.32452-de"
      },
      "registryUsername": {
        "type": "String",
        "value": ""
      },
      "registryPassword": {
        "type": "SecureString"
      },
      "assignPremiumPlan": {
        "type": "String",
        "value": "No"
      },
      "createTestUsers": {
        "type": "String",
        "value": "No"
      },
      "licenseFileUri": {
        "type": "String",
        "value": ""
      },
      "sqlServerType": {
        "type": "String",
        "value": "SQLExpress"
      },
      "appBacpacUri": {
        "type": "String",
        "value": "https://example.blob.core.windows.net/public2/v14/***"
      },
      "tenantBacpacUri": {
        "type": "String",
        "value": "https://example.blob.core.windows.net/public2/v14/***"
      },
      "includeAppUris": {
        "type": "String",
        "value": ""
      },
      "enableTaskScheduler": {
        "type": "String",
        "value": "Yes"
      },
      "multitenant": {
        "type": "String",
        "value": "Yes"
      },
      "office365UserName": {
        "type": "String",
        "value": ""
      },
      "office365Password": {
        "type": "SecureString"
      },
      "createAadUsers": {
        "type": "String",
        "value": "No"
      },
      "certificatePfxUrl": {
        "type": "String",
        "value": ""
      },
      "certificatePfxPassword": {
        "type": "SecureString"
      },
      "publicDnsName": {
        "type": "String",
        "value": ""
      },
      "finalSetupScriptUrl": {
        "type": "String",
        "value": ""
      },
      "bingMapsKey": {
        "type": "String",
        "value": ""
      },
      "requestToken": {
        "type": "String",
        "value": ""
      },
      "createStorageQueue": {
        "type": "String",
        "value": "No"
      },
      "runWindowsUpdate": {
        "type": "String",
        "value": "No"
      },
      "contactEMailForLetsEncrypt": {
        "type": "String",
        "value": "***@example.com"
      },
      "autoShutdown": {
        "type": "String",
        "value": "Enabled"
      },
      "autoShutdownTime": {
        "type": "String",
        "value": "20:00"
      },
      "addTraefik": {
        "type": "String",
        "value": "No"
      }
    }

As I see you updated this code yesterday: fix

Failing releases with BcContainerHelper 3.0.2

Hi Freddy,

Yesterday we had failing releases with the preview version of BcContainerHelper 3.0.2. Today we saw the 3.0.2 is in production. And we have the same issues now on our production releases.
BCArtifactsURL is the same as the successful release with version 3.0.1.
The only difference is the BcContainerHelper version. Attached the log files of the 2 releases.

We also tried to revered the BcContainerHelper version on the failed vm back to 3.0.1 and ran the SetupNavContainer.ps1 manually, but also the error about the credentials appears.

Can you have a look what is going wrong? This is blocking our daily releases.

Hope to hear from you soon,

Greetings Manuel van der Meijden
Cegeka

Succesfull release with BcContainerHelper 3.0.1.txt
Failed release with BcContainerHelper 3.0.2-preview.txt

InstallOrUpdateDockerEngine.ps1 does not find latest release on PowerShell 7

If I run

Invoke-WebRequest -UseBasicParsing -uri 'https://raw.githubusercontent.com/microsoft/nav-arm-templates/master/InstallOrUpdateDockerEngine.ps1' -OutFile (Join-Path $ENV:TEMP 'installorUpdateDocker.ps1')
. (Join-Path $ENV:TEMP 'installorUpdateDocker.ps1')

with PowerShell 7 I get

Exception: C:\Users\user\AppData\Local\Temp\installorUpdateDocker.ps1:32
Line |
  32 |      throw "Unable to locate latest stable docker download"
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unable to locate latest stable docker download

Solution:

Remove the `r from the split function:

# Get Latest Stable version and URL
- $latestZipFile = (Invoke-WebRequest -UseBasicParsing -uri "https://download.docker.com/win/static/stable/x86_64/").Content.split("`r`n") | 
+ $latestZipFile = (Invoke-WebRequest -UseBasicParsing -uri "https://download.docker.com/win/static/stable/x86_64/").Content.split("`n") | 
                 Where-Object { $_ -like "<a href=""docker-*"">docker-*" } | 
                 ForEach-Object { $zipName = $_.Split('"')[1]; [Version]($zipName.SubString(7,$zipName.Length-11).Split('-')[0]) } | 
                 Sort-Object | Select-Object -Last 1 | ForEach-Object { "docker-$_.zip" }

Docker LSTC2019 problem

When trying to create the latest sandbox using docker on a WS2019.

I'm getting this error:

Host is Windows Server 10.0.17763.0 - ltsc2019
Pulling image mcr.microsoft.com/businesscentral/sandbox:latest
latest: Pulling from businesscentral/sandbox
Using image mcr.microsoft.com/businesscentral/sandbox:latest
Removing C:\ProgramData\NavContainerHelper\Extensions\BC-Sandbox
Creating Nav container BC-Sandbox
Using license file C:\ProgramData\bcEnvironmentHelper\BC2018FALLdk.flf
NAV Version: 13.1.25940.26323-W1
Generic Tag: 0.0.8.0
Container OS Version: 10.0.14393.2608 (ltsc2016)
Host OS Version: 10.0.17763.0 (ltsc2019)
A better Container OS exists for your host (ltsc2019)
generic-ltsc2019: Pulling from microsoft/dynamics-nav
Creating container BC-Sandbox from image microsoft/dynamics-nav:generic-ltsc2019
84cd1e54676fd2440ff39057a7b0b5d2ec964a5ec473ed6d739b6a934940d6e5
Waiting for container BC-Sandbox to be ready
Installing Business Central
Downloading Url Rewrite
Installing Url Rewrite
Downloading OpenXML
Installing OpenXML
Downloading DotNetCore
Installing DotNetCore
Starting Local SQL Server
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to
start...
Starting Internet Information Server
Copying Service Tier Files
Copying Web Client Files
Copying Windows Client Files

Copying PowerShell Scripts
Cannot find path 'C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration' because it does not exist.
at , C:\Run\navinstall.ps1: line 69
at , C:\Run\start.ps1: line 108
at , : line 1Error
Installing Business Central

I checked the NAVAdministration folder in the container, and it's empty.

storage account in buildagent.json

Hello,

is there any reason that there is a deployment of a storage account included?
I guess this is an old artefact from when there were no managed disk or is there another reason?
If it is still needed, the storage account part should be updated as the configuration does not include the current defaults, e.g. TLS 1.2 or soft delete.

https://github.com/microsoft/nav-arm-templates/blob/master/buildagent.json

Also the default machine could be changed to "Standard_D4s_v5".

Deployment Failed

Not sure what I am doing wrong. Tried http://aka.ms/getbc three times and got this error message. I've created hundreds of these VMs over the years so I think I know what I'm doing but I can't get it to work.
image
image

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"VMExtensionProvisioningError","message":"VM has reported a failure when processing extension 'vmextension1'. Error message: "Command execution finished, but failed because it returned a non-zero exit code of: '1'. The command had an error output of: 'PackageManagement\Install-Package : No match was found for the specified search criteria and module name \r\n'powershellget'. Try Get-PSRepository to see all available registered module repositories.\r\nAt C:\Program Files\WindowsPowerShell\Modules\PowerShellG...' For more information, check the instance view by executing Get-AzVmssVm or Get-AzVm (https://aka.ms/GetAzVm). These commands can be executed using CloudShell (https://aka.ms/CloudShell)"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot "}]}

Cannot connect to created web via Universal App / iOS App, using getbc

Using Universal Business Central App and/or iOS App I cannot connect to the BC web client end point.
From the browser it works OK for both phone and desktop.

I choose My Business Central is not in the cloud yet and provide the web url. It let us even authenticate and then it returns

Sorry, the page could not be found. - Please check the address and try again.

The URL used is like https://mydemo.westeurope.cloudapp.azure.com/NAV/

Config for getbc is pretty much all inclusive:

  • Image: mcr.microsoft.com/businesscentral/onprem:cz
  • AAD integration
  • Custom license
  • Windows Server 2019 with Containers

Any help/direction on how to make Universal App & Phone Client working with getbc out-of-the-box setup is greatly appreciated.

Validate templates of ARM failed.

Hello,

We started to encounter presented below when validating the template from getbcext.json. Did you encounter it before?

The Resource 'Microsoft.Compute/virtualMachines/DE-TEST-117168' under resource group 'DE-R20SAAS-TEST-117168' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
ErrorCode: ResourceNotFound
ErrorMessage: The Resource 'Microsoft.Compute/virtualMachines/DE-TEST-117168' under resource group 'DE-R20SAAS-TEST-117168' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
ErrorTarget:
StatusCode: 404
ReasonPhrase: Not Found
OperationID : adce40f0-b0bd-4ef3-8ef8-869765d6fa1f
PowerShell exited with code '1'.

Azure VM with Azure SQL deployment fails

Location: West Europe
Size: Standard_D2_v3
Admin Pass: Complex password chosen...
Image: microsoft/bcsandbox:gb
SQL: AzureSQL
Win Upate: No
Lets Encrypt: Yes

The deployment fails with the following message -

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"BadRequest","message":"{\r\n "error": {\r\n "code": "InvalidTemplate",\r\n "message": "Unable to process template language expressions for resource '/subscriptions/MASKED/resourceGroups/TSGTESTD365BC/providers/Microsoft.Sql/servers/sqltsgtestd365bc/databases/App/extensions/Import' at line '1' and column '7615'. 'The language expression property array index '1' is out of bounds.'"\r\n }\r\n}"},{"code":"BadRequest","message":"{\r\n "error": {\r\n "code": "InvalidTemplate",\r\n "message": "Unable to process template language expressions for resource '/subscriptions/MASKED/resourceGroups/TSGTESTD365BC/providers/Microsoft.Sql/servers/sqltsgtestd365bc/databases/Tenant/extensions/Import' at line '1' and column '8657'. 'The language expression property array index '1' is out of bounds.'"\r\n }\r\n}"}]}

BingMaps not working in getbc

When creating an environment via http://aka.ms/getbc and using BingMapsKey, the docker startup fails with error message:

Exception calling "DownloadFile" with "2" argument(s): "The remote name could not be resolved: 'directionswe.blob.core.windows.net'"

This seems to happen in NavContainerSetup.ps1 due to the invalid link in http://aka.ms/bingmaps.app

LetsEncrypt

Hi,
We have an ARM template on Azure, several BC-Containers (15databases), use treafik.
But we have an issue with LetsEncrypt, he doesn't want to Renew himself as he does until now.

What is the fastest way to do that?

AL:GO! fails with System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0

After going directly to vs code on the VM the command AL:GO fails with:

System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0...

Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.MessageWriter..ctor(Stream outputStream, IMessageSerializer messageSerializer)
at Microsoft.Dynamics.Nav.EditorServices.Protocol.Channel.StdioServerChannel.Initialize(IMessageSerializer messageSerializer) in C:\Agent_work\47\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Channel\StdioServerChannel.cs:line 27
at Microsoft.Dynamics.Nav.EditorServices.Protocol.Channel.ChannelBase.Start(MessageProtocolType messageProtocolType, ProtocolEndpointCompletionSource completionSource) in C:\Agent_work\47\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\Channel\ChannelBase.cs:line 40
at Microsoft.Dynamics.Nav.EditorServices.Protocol.MessageProtocol.ProtocolEndpoint.d__4.MoveNext() in C:\Agent_work\47\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Protocol\MessageProtocol\ProtocolEndpoint.cs:line 27
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Prod.EditorServices.Host.Program.Main(String[] args) in C:\Agent_work\47\s\source\Prod\Microsoft.Dynamics.Nav.EditorServices.Host\Program.cs:line 103
[Error - 8:44:21 AM] Connection to server got closed. Server will not be restarted.

Any idea?

Kind regards,
Sebastian

Support for Azure DevTest Lab stopped working

I am refferin to issue #99.
Which worked fine a while ago.
Now I am getting:

GatewayTimeout: The gateway did not receive a response from 'Microsoft.DevTestLab' within the > specified time period.

Thanks!

Deploy in existing environment

We encounter an issue when we try to deploy to an existing environment.
When we try to deploy to an existing Subnet and Vnet, which also has a GatewaySubnet in place, an error occurs:

{
"status": "Failed",
"error": {
"code": "InUseSubnetCannotBeDeleted",
"message": "Subnet GatewaySubnet is in use by /subscriptions/bla-bla-bla/resourceGroups/BA-RGR-EU01/providers/Microsoft.Network/virtualNetworkGateways/VnetGateway/ipConfigurations/default and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.",
"details": []
}
}

Tried in multiple different scenarios but cannot seem to solve this.
Has anyone got a solution for this?

Thanks for your help!

SetupNavContainer.ps1 Cannot bind parameter 'AccessToken'. Cannot convert the value of type "System.String" to type "System.Security.SecureString".

Hi,

When deploying Azure environments on basis of the nav-arm-templates we ran into an issue in nav-arm-templates/master/SetupNavContainer.ps1

The procedure that creates the Aad Apps for BC is raising the below error:

New-AadAppsForBC Telemetry Correlation Id: 4a9ec360-0353-4dbe-8a6e-ca56f13a45f1
Connect-MgGraph : Cannot bind parameter 'AccessToken'. Cannot convert the "eyJ0e...aSw" value of type "System.String" to type "System.Security.SecureString".
At C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\5.0.3\AzureAD\New-AadAppsForBc.ps1:82 char:42
+ ...       Connect-MgGraph -AccessToken $bcAuthContext.accessToken | Out-N ...
+                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Connect-MgGraph], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Graph.PowerShell.Authentication.Cmdlets.ConnectMgGraph

The procedure uses BcAuthContext to create the Aad Apps for BC in nav-arm-templates/master/SetupNavContainer.ps1:

       try {
            $authContext = New-BcAuthContext -tenantID $aadDomain -credential $Office365Credential -scopes "https://graph.microsoft.com/.default"
            if (-not $authContext) {
                $authContext = New-BcAuthContext -includeDeviceLogin -scopes "https://graph.microsoft.com/.default" -deviceLoginTimeout ([TimeSpan]::FromSeconds(0))
                AddToStatus $authContext.message
                $authContext = New-BcAuthContext -deviceCode $authContext.deviceCode -deviceLoginTimeout ([TimeSpan]::FromMinutes(30))
                if (-not $authContext) {
                    throw "Failed to authenticate with Office 365"
                }
            }
            $AdProperties = New-AadAppsForBC `
                -bcAuthContext $authContext `
                -appIdUri $appIdUri `
                -publicWebBaseUrl $publicWebBaseUrl `
                -IncludeExcelAadApp `
                -IncludeApiAccess `
                -IncludeOtherServicesAadApp `
                -preAuthorizePowerShell

In navcontainerhelper/AzureAD/New-AadAppsForBc.ps1 it tries to connect to MsGraph by using the accessToken but Connect-MgGraph -AccessToken requires a Secure String but $bcAuthContext.accessToken is a String:

 # Connect to Microsoft.Graph
    if (!$useCurrentMicrosoftGraphConnection) {
        if ($bcAuthContext) {
            $bcAuthContext = Renew-BcAuthContext -bcAuthContext $bcAuthContext
            $jwtToken = Parse-JWTtoken -token $bcAuthContext.accessToken
            if ($jwtToken.aud -ne 'https://graph.microsoft.com') {
                Write-Host -ForegroundColor Yellow "The accesstoken was provided for $($jwtToken.aud), should have been for https://graph.microsoft.com"
            }
            Connect-MgGraph -AccessToken $bcAuthContext.accessToken | Out-Null
        }
        else {
            if ($accessToken) {
                Connect-MgGraph -accessToken $accessToken | Out-Null
            }
            else {
                Connect-MgGraph -Scopes 'Application.ReadWrite.All' | Out-Null
            }
        }
    }

As a workaround we resolved the issue for now and changed our local version of nav-arm-templates/master/SetupNavContainer.ps1 to connect first with MgGraph using the Secure String and using this connection via parameter -useCurrentMicrosoftGraphConnection instead of -bcAuthContext:

               $authContext.AccessToken = ConvertTo-SecureString $authContext.AccessToken -AsPlainText -Force
               Connect-MgGraph -AccessToken $AuthContext.accessToken | Out-Null

                $AdProperties = New-AadAppsForBC `
                -appIdUri $appIdUri `
                -publicWebBaseUrl $publicWebBaseUrl `
                -IncludeExcelAadApp `
                -IncludeApiAccess `
                -IncludeOtherServicesAadApp `
                -preAuthorizePowerShell `
                -useCurrentMicrosoftGraphConnection

In this case its successfully creating the app registrations.

Connection through Android/iPhone app over traefik fails - connection not secure

I set up a vm with traefik enabled. The connection to the containers through the web client works perfectly fine, but fails using the android or IPhone app.
The failure message in the apps reads:
"The application enabled can only be accessed using a secure connection (HTTPS)"
This happens for each of the arm templates (getnav, getbc, getbcext) for bc and nav containers.
I am able to connect through the apps to a single container without traefik enabled.

When connecting with the web client, I am monitoring several http and https requests. For instance when the client requests the Header.png for the login page.
See also on this Yammer thread: https://www.yammer.com/dynamicsnavdev/#/Threads/show?threadId=396327303618560

Office 365 integration with MFA (AADSTS50076)

I'm having some trouble setting up a development environment from aka.ms/getbc, where the admin-account has MFA enabled.

image

When providing the credentials Office365User Name and Office365Password with the admin account of our Azure AD, the setup fails;

11:09:13 AM One or more errors occurred.: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0000-c000-000000000000'.

Is it possible to support this scenario or is the combination with MFA not possible?

<font color="Gray">10:39:58 AM Running Windows Server 2019 Datacenter</font>
<font color="Gray">10:39:58 AM Initialize, user: testazuread$</font>
<font color="Gray">10:39:58 AM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbc.json</font>
<font color="Gray">10:40:30 AM Installing PowerShellGet 2.2.1</font>
<font color="Gray">10:40:47 AM Installing Internet Information Server (this might take a few minutes)</font>
<font color="Gray">10:43:11 AM Downloading C:\inetpub\wwwroot\default.aspx</font>
<font color="Gray">10:43:11 AM Downloading C:\inetpub\wwwroot\status.aspx</font>
<font color="Gray">10:43:11 AM Downloading C:\inetpub\wwwroot\line.png</font>
<font color="Gray">10:43:11 AM Downloading C:\inetpub\wwwroot\Microsoft.png</font>
<font color="Gray">10:43:12 AM Downloading C:\inetpub\wwwroot\web.config</font>
<font color="Gray">10:43:12 AM Creating Connect.rdp</font>
<font color="Gray">10:43:12 AM Turning off IE Enhanced Security Configuration</font>
<font color="Gray">10:43:12 AM Downloading c:\myfolder\SetupWebClient.ps1</font>
<font color="Gray">10:43:12 AM Downloading c:\demo\SetupDesktop.ps1</font>
<font color="Gray">10:43:12 AM Downloading c:\demo\SetupNavContainer.ps1</font>
<font color="Gray">10:43:12 AM Downloading c:\demo\SetupVm.ps1</font>
<font color="Gray">10:43:13 AM Downloading c:\demo\SetupStart.ps1</font>
<font color="Gray">10:43:13 AM Downloading c:\demo\restartContainers.ps1</font>
<font color="Gray">10:43:14 AM Downloading C:\DEMO\Install-VS2017Community.ps1</font>
<font color="Gray">10:43:16 AM Restarting computer and start Installation tasks</font>
<font color="Gray">10:45:38 AM SetupStart, User: testazuread$</font>
<font color="Gray">10:45:42 AM Installing Latest Business Central Container Helper from PowerShell Gallery</font>
<font color="Gray">10:46:03 AM Using BcContainerHelper version 1.0.6</font>
<font color="Gray">10:46:03 AM Installing ACME-PS PowerShell Module</font>
<font color="Gray">10:46:39 AM Using Lets Encrypt certificate</font>
<font color="Gray">10:48:33 AM Installing Az module</font>
<font color="Gray">10:51:37 AM Installing AzureAD module</font>
<font color="Gray">10:51:53 AM Installing SqlServer module</font>
<font color="Gray">10:52:49 AM Register RestartContainers Task to start container delayed</font>
<font color="Gray">10:52:55 AM Launch SetupVm</font>
<font color="Gray">10:53:00 AM SetupVm, User: vmadmin</font>
<font color="Gray">10:53:02 AM Starting docker</font>
<font color="Gray">10:53:02 AM Enabling Docker API</font>
<font color="Gray">10:53:04 AM Enabling File Download in IE</font>
<font color="Gray">10:53:04 AM Enabling Font Download in IE</font>
<font color="Gray">10:53:04 AM Show hidden files and file types</font>
<font color="Gray">10:53:04 AM Disabling Server Manager Open At Logon</font>
<font color="Gray">10:53:04 AM Add Import bccontainerhelper to PowerShell profile</font>
<font color="Gray">10:53:04 AM Adding Landing Page to Startup Group</font>
<font color="Gray">10:53:06 AM Pulling mcr.microsoft.com/dynamicsnav:10.0.17763.1457-generic (this might take some time)</font>
<font color="Gray">10:53:12 AM 10.0.17763.1457-generic: Pulling from dynamicsnav</font>
<font color="Gray">11:05:53 AM d171df54237d: Pull complete</font>
<font color="Gray">11:05:53 AM Digest: sha256:808eaf5b603c7de832af95efdeaa1453489ff687758dfe64e7e457e381d5156c</font>
<font color="Gray">11:05:53 AM Status: Downloaded newer image for mcr.microsoft.com/dynamicsnav:10.0.17763.1457-generic</font>
<font color="Gray">11:05:53 AM Installing Visual C++ Redist</font>
<font color="Gray">11:06:07 AM Installing SQL Native Client</font>
<font color="Gray">11:06:09 AM Installing OpenXML 2.5</font>
<font color="Gray">11:08:55 AM Creating Aad Apps for Office 365 integration</font>
<font color="Red">11:09:13 AM One or more errors occurred.: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '00000002-0000-0000-c000-000000000000'.
Trace ID: 639c8d41-3151-4cfa-b44d-5d32c0861000
Correlation ID: 0794e6a4-3e28-4ace-8cd0-c36212bf81c5
Timestamp: 2020-09-29 09:09:13Z</font>
<font color="Red">11:09:13 AM Reverting to NavUserPassword authentication</font>
<font color="Gray">11:09:13 AM Using artifactUrl https://bcartifacts.azureedge.net/onprem/16.5.15897.15953/w1</font>
<font color="Gray">11:09:13 AM Country w1</font>
<font color="Gray">11:09:13 AM Version 16.5.15897.15953</font>
<font color="Gray">11:09:13 AM Locale en-US</font>
<font color="Gray">11:09:13 AM Running container (this might take some time)</font>
<font color="Red">11:21:52 AM The remote server returned an error: (401) Unauthorized.</font>
<font color="Red">11:21:52 AM at Invoke-BcContainerApi, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\1.0.6\Api\Invoke-NavContainerApi.ps1: line 153</font>
<font color="Red">11:21:52 AM at Get-BcContainerApiCompanyId, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\1.0.6\Api\Get-NavContainerApiCompanyId.ps1: line 62</font>
<font color="Red">11:21:52 AM at <ScriptBlock>, C:\demo\SetupNavContainer.ps1: line 389</font>
<font color="Red">11:21:52 AM at <ScriptBlock>, C:\demo\setupVm.ps1: line 296</font>```

Nice 2 Have - Add 7zip to additional-installforbuildagent.ps1

Hi Freddy,

this is a small wish: Do you mind adding 7zip to additional-installforbuildagent.ps1 ? Since you install choco anyway that should be a small thing to do, or?
I recall reading that 7zip makes a couple of things faster compared to the normal zip.

It is just an idea :)

Creating VMs with ARM Template fails

Hi Freddy,

I have tried several combinations of parameters with ARM templates using artifacts, but all of them have started to fail. They all worked previously - but since yesterday, I get an error. Any idea if it is me doing something wrong?

I have created a template link using the wizard. I use the artifact bcartifacts/sandbox//dk/latest

The VM itself is created, but the install process fails.

Here is a dump of the log:

9:37:59 AM at , C:\demo\setupVm.ps1: line 281
9:37:59 AM at Download-File, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\1.0.11\Misc\Download-File.ps1: line 51
9:37:59 AM Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
9:37:58 AM Installing SQL Native Client
9:37:47 AM Installing Visual C++ Redist
9:37:47 AM Status: Downloaded newer image for mcr.microsoft.com/dynamicsnav:10.0.17763.1518-generic
9:37:47 AM Digest: sha256:884abc530e1503fc2421ac22a6118a1bd5e5d02a3f4f06367e749f9659c66208
9:37:47 AM 108238d5262a: Pull complete
9:37:47 AM b1ca7b6feff1: Pull complete
9:37:46 AM f6a06d086d5f: Pull complete
9:37:46 AM 6fc4ff0c7e61: Pull complete
9:37:45 AM 2a37ddbd8d7d: Pull complete
9:37:14 AM e2abd630f65a: Pull complete
9:37:13 AM bf263da7d8dc: Pull complete
9:35:53 AM d2bee14013e9: Pull complete
9:35:52 AM 9d140abfa945: Pull complete
9:35:52 AM ed88a509e6f9: Pull complete
9:35:51 AM 77645b145af2: Pull complete
9:35:50 AM f184f2b3f9b6: Pull complete
9:35:00 AM 5d34eb401baa: Pull complete
9:35:00 AM d6a49c7fd269: Pull complete
9:32:53 AM 1f2fd12c0381: Pull complete
9:28:38 AM bf263da7d8dc: Download complete
9:28:38 AM bf263da7d8dc: Verifying Checksum
9:28:38 AM 2a37ddbd8d7d: Download complete
9:28:38 AM 2a37ddbd8d7d: Verifying Checksum
9:28:33 AM 108238d5262a: Download complete
9:28:33 AM 108238d5262a: Verifying Checksum
9:28:33 AM b1ca7b6feff1: Download complete
9:28:33 AM b1ca7b6feff1: Verifying Checksum
9:28:33 AM f6a06d086d5f: Download complete
9:28:33 AM f6a06d086d5f: Verifying Checksum
9:28:33 AM 6fc4ff0c7e61: Download complete
9:28:33 AM 6fc4ff0c7e61: Verifying Checksum
9:28:33 AM 1f2fd12c0381: Download complete
9:28:33 AM 1f2fd12c0381: Verifying Checksum
9:28:33 AM e2abd630f65a: Download complete
9:28:33 AM e2abd630f65a: Verifying Checksum
9:28:33 AM f184f2b3f9b6: Download complete
9:28:33 AM f184f2b3f9b6: Verifying Checksum
9:28:33 AM d2bee14013e9: Download complete
9:28:33 AM d2bee14013e9: Verifying Checksum
9:28:32 AM 9d140abfa945: Download complete
9:28:32 AM 9d140abfa945: Verifying Checksum
9:28:32 AM ed88a509e6f9: Download complete
9:28:32 AM ed88a509e6f9: Verifying Checksum
9:28:32 AM 77645b145af2: Download complete
9:28:32 AM 77645b145af2: Verifying Checksum
9:28:32 AM d6a49c7fd269: Download complete
9:28:32 AM d6a49c7fd269: Verifying Checksum
9:28:29 AM 5d34eb401baa: Download complete
9:28:29 AM 5d34eb401baa: Verifying Checksum
9:28:29 AM 108238d5262a: Waiting
9:28:29 AM b1ca7b6feff1: Waiting
9:28:29 AM f6a06d086d5f: Waiting
9:28:29 AM 6fc4ff0c7e61: Waiting
9:28:29 AM 2a37ddbd8d7d: Waiting
9:28:29 AM e2abd630f65a: Waiting
9:28:29 AM bf263da7d8dc: Waiting
9:28:29 AM d2bee14013e9: Waiting
9:28:29 AM 9d140abfa945: Waiting
9:28:29 AM ed88a509e6f9: Waiting
9:28:29 AM 77645b145af2: Waiting
9:28:29 AM f184f2b3f9b6: Waiting
9:28:29 AM 108238d5262a: Pulling fs layer
9:28:29 AM b1ca7b6feff1: Pulling fs layer
9:28:29 AM f6a06d086d5f: Pulling fs layer
9:28:29 AM 6fc4ff0c7e61: Pulling fs layer
9:28:29 AM 2a37ddbd8d7d: Pulling fs layer
9:28:29 AM e2abd630f65a: Pulling fs layer
9:28:29 AM bf263da7d8dc: Pulling fs layer
9:28:29 AM d2bee14013e9: Pulling fs layer
9:28:29 AM 9d140abfa945: Pulling fs layer
9:28:29 AM ed88a509e6f9: Pulling fs layer
9:28:29 AM 77645b145af2: Pulling fs layer
9:28:29 AM f184f2b3f9b6: Pulling fs layer
9:28:29 AM 5d34eb401baa: Pulling fs layer
9:28:29 AM d6a49c7fd269: Pulling fs layer
9:28:29 AM 1f2fd12c0381: Pulling fs layer
9:28:29 AM 406ffb8432a7: Already exists
9:28:29 AM 4612f6d0b889: Already exists
9:28:29 AM 10.0.17763.1518-generic: Pulling from dynamicsnav
9:28:23 AM Pulling mcr.microsoft.com/dynamicsnav:10.0.17763.1518-generic (this might take some time)
9:27:51 AM Adding Landing Page to Startup Group
9:27:50 AM Add Import bccontainerhelper to PowerShell profile
9:27:50 AM Disabling Server Manager Open At Logon
9:27:50 AM Show hidden files and file types
9:27:50 AM Enabling Font Download in IE
9:27:50 AM Enabling File Download in IE
9:27:49 AM Enabling Docker API
9:27:49 AM Starting docker
9:27:47 AM SetupVm, User: vmadmin
9:27:40 AM Launch SetupVm
9:27:39 AM Register RestartContainers Task to start container delayed
9:26:53 AM Installing SqlServer module
9:26:39 AM Installing AzureAD module
9:23:25 AM Installing Az module
9:23:25 AM Using BcContainerHelper version 1.0.11
9:22:58 AM Installing Latest Business Central Container Helper from PowerShell Gallery
9:22:54 AM SetupStart, User: navokatdevanp$
9:20:36 AM Restarting computer and start Installation tasks
9:20:35 AM Downloading C:\DEMO\Install-VS2017Community.ps1
9:20:35 AM Downloading c:\demo\restartContainers.ps1
9:20:34 AM Downloading c:\demo\SetupStart.ps1
9:20:34 AM Downloading c:\demo\SetupVm.ps1
9:20:34 AM Downloading c:\demo\SetupNavContainer.ps1
9:20:34 AM Downloading c:\demo\SetupDesktop.ps1
9:20:33 AM Downloading c:\myfolder\SetupWebClient.ps1
9:20:33 AM Turning off IE Enhanced Security Configuration
9:20:33 AM Creating Connect.rdp
9:20:33 AM Downloading C:\inetpub\wwwroot\web.config
9:20:33 AM Downloading C:\inetpub\wwwroot\Microsoft.png
9:20:33 AM Downloading C:\inetpub\wwwroot\line.png
9:20:32 AM Downloading C:\inetpub\wwwroot\status.aspx
9:20:32 AM Downloading C:\inetpub\wwwroot\default.aspx
9:18:39 AM Installing Internet Information Server (this might take a few minutes)
9:18:21 AM Installing PowerShellGet 2.2.1
9:18:06 AM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json
9:18:06 AM Initialize, user: navokatdevanp$
9:18:06 AM Running Windows Server 2019 Datacenter
9:18:06 AM Starting initialization

VM Template fail for Azure SQL at SetupNavContainer.ps1

SetupNavContainer.ps1 Fails for Azure SQL Databases at:
image

settipngs.ps1:

$sqlServerType = "AzureSQL"
$azureSqlServer = "sqlierpbctest02.database.windows.net"
$appBacpacUri = "https://xxxxxxxx.blob.core.windows.net/db-backups/database.bacpac?st=2019-04-16T15%3A27%3A23Z&se=2022-04-17T15%3A27%3A00Z&sp=rl&sv=2018-03-28&sr=b&sig=THMFG%2FH1ydLLYWJmEEEEEEE2B%2FSj4dN8QmLTOWuYo3c%3D"
$tenantBacpacUri = ""
$includeAppUris = ""
$enableSymbolLoading = "Yes"
$clickonce = "No"
$enableTaskScheduler = "Yes"
$licenseFileUri = ""
$publicDnsName = "xxxxxx.westeurope.cloudapp.azure.com"
$workshopFilesUrl = ""
$style = "demo"
$RunWindowsUpdate = "Yes"
$AssignPremiumPlan = "No"
$CreateTestUsers = "No"
$CreateAadUsers = "No"
$Multitenant = "No"
$WindowsInstallationType = "Server"
$WindowsProductName = "Windows Server 2019 Datacenter"

Error:
image

MultiTenant Deployment with SQLDeveloper Fails

I've tested it three times.Always fails for same reason.

ARM Deployment (via aka.ms/getbcext) worked well but it comes to an error wile running container.

4:55:11 PM at , : line 51
4:55:11 PM The tenant 'default' is not mounted or does not exist.
4:42:46 PM Running container (this might take some time)
4:42:46 PM using host as database server
4:42:13 PM Locale de-DE
4:42:13 PM Version 16.3.14085.14328
4:42:13 PM Country de
4:42:13 PM Using artifactUrl https://bcartifacts.azureedge.net/sandbox/16.3.14085.14328/de
4:37:24 PM Installing OpenXML 2.5
4:37:23 PM Installing SQL Native Client
4:37:19 PM Installing Visual C++ Redist
4:37:19 PM Status: Downloaded newer image for mcr.microsoft.com/dynamicsnav:10.0.17763.1339-generic
4:37:19 PM Digest: sha256:a1825dc0693031e86158c4805399d677878739dfe39572f0bea7330b38c34c19
4:37:19 PM fb9edca993e6: Pull complete
4:37:18 PM e5e9144b0b80: Pull complete
4:37:17 PM a742cf654a58: Pull complete
4:37:16 PM a5dc8e2a8759: Pull complete
4:37:15 PM 85f5eb990de2: Pull complete
4:37:06 PM fec714f503c8: Pull complete
4:37:06 PM fff617907868: Pull complete
4:35:35 PM 90125d17086d: Pull complete
4:35:35 PM 4e2b24c036f3: Pull complete
4:35:34 PM daed7e87ad55: Pull complete
4:35:33 PM 4520c21c9ce1: Pull complete
4:35:33 PM 32fad1b53b36: Pull complete
4:34:35 PM 4ce1ae7b9cfc: Pull complete
4:34:35 PM 6dc988e2efd9: Pull complete
4:31:42 PM 8a943217e0a7: Pull complete
4:23:14 PM fff617907868: Download complete
4:23:14 PM fff617907868: Verifying Checksum
4:23:04 PM 85f5eb990de2: Download complete
4:23:04 PM 85f5eb990de2: Verifying Checksum
4:23:04 PM fb9edca993e6: Download complete
4:23:04 PM fb9edca993e6: Verifying Checksum
4:23:04 PM e5e9144b0b80: Download complete
4:23:04 PM e5e9144b0b80: Verifying Checksum
4:23:04 PM a742cf654a58: Download complete
4:23:04 PM a742cf654a58: Verifying Checksum
4:23:04 PM a5dc8e2a8759: Download complete
4:23:04 PM a5dc8e2a8759: Verifying Checksum
4:23:04 PM fec714f503c8: Download complete
4:23:03 PM fec714f503c8: Verifying Checksum
4:23:03 PM 90125d17086d: Download complete
4:23:03 PM 90125d17086d: Verifying Checksum
4:23:03 PM 8a943217e0a7: Download complete
4:23:03 PM 8a943217e0a7: Verifying Checksum
4:23:03 PM 4e2b24c036f3: Download complete
4:23:03 PM 4e2b24c036f3: Verifying Checksum
4:23:03 PM 6dc988e2efd9: Download complete
4:23:03 PM 6dc988e2efd9: Verifying Checksum
4:23:03 PM daed7e87ad55: Download complete
4:23:03 PM daed7e87ad55: Verifying Checksum
4:23:03 PM 4520c21c9ce1: Download complete
4:23:03 PM 4520c21c9ce1: Verifying Checksum
4:23:03 PM 32fad1b53b36: Download complete
4:23:03 PM 32fad1b53b36: Verifying Checksum
4:22:59 PM 4ce1ae7b9cfc: Download complete
4:22:59 PM 4ce1ae7b9cfc: Verifying Checksum
4:22:59 PM fb9edca993e6: Waiting
4:22:59 PM e5e9144b0b80: Waiting
4:22:59 PM a742cf654a58: Waiting
4:22:59 PM a5dc8e2a8759: Waiting
4:22:59 PM 85f5eb990de2: Waiting
4:22:59 PM fec714f503c8: Waiting
4:22:59 PM fff617907868: Waiting
4:22:59 PM 90125d17086d: Waiting
4:22:59 PM 4e2b24c036f3: Waiting
4:22:59 PM daed7e87ad55: Waiting
4:22:59 PM 4520c21c9ce1: Waiting
4:22:59 PM 32fad1b53b36: Waiting
4:22:59 PM fb9edca993e6: Pulling fs layer
4:22:59 PM e5e9144b0b80: Pulling fs layer
4:22:59 PM a742cf654a58: Pulling fs layer
4:22:59 PM a5dc8e2a8759: Pulling fs layer
4:22:59 PM 85f5eb990de2: Pulling fs layer
4:22:59 PM fec714f503c8: Pulling fs layer
4:22:59 PM fff617907868: Pulling fs layer
4:22:59 PM 90125d17086d: Pulling fs layer
4:22:59 PM 4e2b24c036f3: Pulling fs layer
4:22:59 PM daed7e87ad55: Pulling fs layer
4:22:59 PM 4520c21c9ce1: Pulling fs layer
4:22:58 PM 32fad1b53b36: Pulling fs layer
4:22:58 PM 4ce1ae7b9cfc: Pulling fs layer
4:22:58 PM 6dc988e2efd9: Pulling fs layer
4:22:58 PM 8a943217e0a7: Pulling fs layer
4:22:58 PM fc1b9e59edad: Already exists
4:22:58 PM 4612f6d0b889: Already exists
4:22:58 PM 10.0.17763.1339-generic: Pulling from dynamicsnav
4:22:37 PM Pulling mcr.microsoft.com/dynamicsnav:10.0.17763.1339-generic (this might take some time)
4:22:35 PM Adding Landing Page to Startup Group
4:22:35 PM Add Import navcontainerhelper to PowerShell profile
4:22:35 PM Disabling Server Manager Open At Logon
4:22:35 PM Show hidden files and file types
4:22:35 PM Enabling Font Download in IE
4:22:35 PM Enabling File Download in IE
4:22:32 PM Enabling Docker API
4:22:32 PM Starting docker
4:14:06 PM Installing SQL Server Developer edition
4:14:04 PM SetupVm, User: vmadmin
4:13:56 PM Launch SetupVm
4:13:55 PM Register RestartContainers Task to start container delayed
4:13:10 PM Installing SqlServer module
4:12:54 PM Installing AzureAD module
4:09:41 PM Installing Az module
4:09:14 PM Using Lets Encrypt certificate
4:09:05 PM Installing ACME-PS PowerShell Module
4:08:51 PM SetupStart, User: kvstrddemo01$
4:06:27 PM Restarting computer and start Installation tasks
4:06:26 PM Using Nav Container Helper version 0.7.0.20
4:06:09 PM Installing Latest Nav Container Helper from PowerShell Gallery
4:06:08 PM Downloading C:\DEMO\Install-VS2017Community.ps1
4:06:08 PM Downloading c:\demo\restartContainers.ps1
4:06:07 PM Downloading c:\demo\SetupStart.ps1
4:06:06 PM Downloading c:\demo\SetupVm.ps1
4:06:06 PM Downloading c:\demo\SetupAAD.ps1
4:06:06 PM Downloading c:\demo\SetupNavContainer.ps1
4:06:05 PM Downloading c:\demo\SetupDesktop.ps1
4:06:05 PM Downloading c:\myfolder\SetupWebClient.ps1
4:06:05 PM Turning off IE Enhanced Security Configuration
4:06:05 PM Creating Connect.rdp
4:06:05 PM Downloading C:\inetpub\wwwroot\web.config
4:06:04 PM Downloading C:\inetpub\wwwroot\Microsoft.png
4:06:04 PM Downloading C:\inetpub\wwwroot\line.png
4:06:04 PM Downloading C:\inetpub\wwwroot\status.aspx
4:06:03 PM Downloading C:\inetpub\wwwroot\default.aspx
4:02:51 PM Installing Internet Information Server (this might take a few minutes)
4:02:35 PM Installing PowerShellGet 2.2.1
4:02:10 PM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json
4:02:10 PM Initialize, user: kvstrddemo01$
4:02:10 PM Running Windows Server 2019 Datacenter
4:02:10 PM Starting initialization

We used a sandbox artifact (bcartifacts/sandbox/16.3.14085.14328/de/latest), SQLDeveloper and multitenancy.
Full Parameterset and Logs:
Deployment-Microsoft.Template.zip

Error when using "SQL Server Type" = SQLDeveloper option with aka.ms/getbcext

We are setting up a new environment using aka.ms/getbcext.

When choosing option for SQL Developer edition on host, we are getting the following error during VM setup:

8:41:04 PM at , C:\demo\setupVm.ps1: line 247
8:41:04 PM A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
8:35:49 PM Installing SQL Server Developer edition
8:35:29 PM Using Lets Encrypt certificate
8:34:49 PM Installing ACME-PS PowerShell Module
8:34:37 PM SetupVm, User: localadmin
8:34:25 PM Launch SetupVm
8:34:24 PM Register RestartContainers Task to start container delayed
8:31:40 PM Installing SqlServer module
8:19:53 PM Installing Microsoft.Graph module
8:19:31 PM Installing AzureAD module
8:13:01 PM Installing Az module
8:13:00 PM Using BcContainerHelper version 5.0.3
8:12:17 PM Installing Latest Business Central Container Helper from PowerShell Gallery
8:12:12 PM SetupStart, User: test-getbcext5$
8:09:48 PM Restarting computer and start Installation tasks
8:08:35 PM Downloading C:\DEMO\InstallOrUpdateDockerEngine.ps1
8:08:34 PM Downloading C:\DEMO\Install-VS2017Community.ps1
8:08:34 PM Downloading c:\demo\restartContainers.ps1
8:08:34 PM Downloading c:\demo\SetupStart.ps1
8:08:34 PM Downloading c:\demo\SetupVm.ps1
8:08:33 PM Downloading c:\demo\SetupNavContainer.ps1
8:08:33 PM Downloading c:\demo\SetupDesktop.ps1
8:08:33 PM Downloading c:\myfolder\SetupWebClient.ps1
8:08:33 PM Turning off IE Enhanced Security Configuration
8:08:33 PM Creating Connect.rdp
8:08:33 PM Downloading C:\inetpub\wwwroot\web.config
8:08:32 PM Downloading C:\inetpub\wwwroot\Microsoft.png
8:08:32 PM Downloading C:\inetpub\wwwroot\line.png
8:08:32 PM Downloading C:\inetpub\wwwroot\status.aspx
8:08:32 PM Downloading C:\inetpub\wwwroot\default.aspx
8:05:47 PM Installing Internet Information Server (this might take a few minutes)
8:05:26 PM Installing PowerShellGet 2.2.5
8:05:22 PM Installing NuGet Package Provider
8:04:48 PM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json
8:04:48 PM Initialize, user: test-getbcext5$
8:04:48 PM Running Windows Server 2019 Datacenter
8:04:48 PM Starting initialization

All other parameters of the template are left by default, except for "Contact E Mail For Lets Encrypt" that is filled with a valid email.

Git Commands fail for Workshop Machines

In script

https://github.com/microsoft/nav-arm-templates/blob/master/additional-install.ps1

the last three lines fail

& git config --global core.safecrlf false
& git config --global user.email "$($vmAdminUsername)@$($hostName)"
& git config --global user.name "$vmAdminUsername"

8:24:26 PM at , C:\demo\setupVm.ps1: line 255
8:24:26 PM at , C:\demo\FinalSetupScript.ps1: line 32
8:24:26 PM The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Perhaps you need the full path to C:\Program Files\Git\bin\git.exe

SQL timeout error when restoring a large database using aka.ms/getbcext

We are using aka.ms/getbcext template to create an online environment with SQL Express and our own database specified via backup URI.

We are getting a timeout error:

10:37:48 PM at , C:\demo\setupVm.ps1: line 347
10:37:48 PM at , C:\demo\SetupNavContainer.ps1: line 389
10:37:48 PM at New-BcContainer, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\5.0.3\ContainerHandling\New-NavContainer.ps1: line 1952
10:37:48 PM at Wait-BcContainerReady, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\5.0.3\ContainerHandling\Wait-NavContainerReady.ps1: line 42
10:37:48 PM Initialization of container bcserver failed
10:37:48 PM at , : line 1
10:37:48 PM at , C:\Run\start.ps1: line 384
10:37:48 PM at , C:\Run\navstart.ps1: line 138
10:37:48 PM at , C:\Run\SetupDatabase.ps1: line 54
10:37:48 PM Operation cancelled by user.
10:37:48 PM RESTORE DATABASE is terminating abnormally.
10:37:48 PM The backup or restore was aborted.
10:37:48 PM Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
10:37:48 PM The database restore operation failed due to the following error returned by SQL Server:
10:37:48 PM Using database server localhost\SQLEXPRESS
10:37:48 PM Using Database .bak file 'C:\ProgramData\BcContainerHelper\Extensions\bcserver\database.bak'
10:37:48 PM Starting Internet Information Server
10:37:48 PM Starting Local SQL Server
10:37:48 PM Using NavUserPassword Authentication
10:37:48 PM PublicDnsName is test-getbcext6.westeurope.cloudapp.azure.com
10:37:48 PM Hostname is bcserver
10:37:48 PM Starting Container
10:37:48 PM Setting host.containerhelper.internal to 172.30.176.1 in container hosts file
10:37:48 PM Initializing...
10:37:48 PM Container output
10:25:08 PM Running container (this might take some time)
10:25:08 PM Locale en-US
10:25:08 PM Version 22.1.55890.56216
10:25:08 PM Country w1
10:25:08 PM Using artifactUrl https://bcartifacts.azureedge.net/onprem/22.1.55890.56216/w1
10:21:15 PM Installing OpenXML 2.5
10:21:12 PM Installing SQL Native Client
10:21:06 PM Installing Visual C++ Redist
10:21:05 PM mcr.microsoft.com/businesscentral:10.0.20348.1787
10:21:05 PM Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.20348.1787
10:21:05 PM Digest: sha256:fdeb77c50df5aff1323243915ee9c36854bc51ed9bdfa6cde587c69066eecdac
10:21:05 PM 71f47f8ad1f8: Pull complete
10:21:04 PM fe285fe5c150: Pull complete
10:21:03 PM 30fbb7116100: Pull complete
10:21:02 PM dd575eb97d82: Pull complete
10:21:01 PM 2b9309eb6c07: Pull complete
10:20:04 PM 2759c72264c4: Pull complete
10:20:02 PM be5e5d858d8c: Pull complete
10:18:33 PM f9ee43d4d3b5: Pull complete
10:18:32 PM 301f6940435a: Pull complete
10:18:32 PM 47214f2ac238: Pull complete
10:18:31 PM f38df5000877: Pull complete
10:18:31 PM a7617db3795a: Pull complete
10:18:18 PM 54fb39347095: Pull complete
10:18:18 PM 7c76e5cf7755: Pull complete
10:14:59 PM 2b9309eb6c07: Download complete
10:14:59 PM 2b9309eb6c07: Verifying Checksum
10:14:53 PM 7c76e5cf7755: Download complete
10:14:53 PM 7c76e5cf7755: Verifying Checksum
10:14:43 PM 71f47f8ad1f8: Download complete
10:14:43 PM 71f47f8ad1f8: Verifying Checksum
10:14:43 PM fe285fe5c150: Download complete
10:14:43 PM fe285fe5c150: Verifying Checksum
10:14:43 PM 30fbb7116100: Download complete
10:14:43 PM 30fbb7116100: Verifying Checksum
10:14:43 PM dd575eb97d82: Download complete
10:14:43 PM dd575eb97d82: Verifying Checksum
10:14:43 PM be5e5d858d8c: Download complete
10:14:42 PM be5e5d858d8c: Verifying Checksum
10:14:39 PM 2759c72264c4: Download complete
10:14:39 PM 2759c72264c4: Verifying Checksum
10:14:39 PM a7617db3795a: Download complete
10:14:38 PM a7617db3795a: Verifying Checksum
10:14:38 PM f9ee43d4d3b5: Download complete
10:14:38 PM f9ee43d4d3b5: Verifying Checksum
10:14:38 PM 301f6940435a: Download complete
10:14:38 PM 301f6940435a: Verifying Checksum
10:14:38 PM 47214f2ac238: Download complete
10:14:38 PM 47214f2ac238: Verifying Checksum
10:14:38 PM f38df5000877: Download complete
10:14:38 PM f38df5000877: Verifying Checksum
10:14:38 PM 54fb39347095: Download complete
10:14:38 PM 54fb39347095: Verifying Checksum
10:14:38 PM f9ee43d4d3b5: Waiting
10:14:38 PM 301f6940435a: Waiting
10:14:38 PM 47214f2ac238: Waiting
10:14:38 PM f38df5000877: Waiting
10:14:38 PM 71f47f8ad1f8: Waiting
10:14:37 PM fe285fe5c150: Waiting
10:14:36 PM 30fbb7116100: Waiting
10:14:36 PM dd575eb97d82: Waiting
10:14:36 PM 2b9309eb6c07: Waiting
10:14:36 PM 2759c72264c4: Waiting
10:14:36 PM be5e5d858d8c: Waiting
10:14:36 PM 71f47f8ad1f8: Pulling fs layer
10:14:35 PM fe285fe5c150: Pulling fs layer
10:14:35 PM 30fbb7116100: Pulling fs layer
10:14:35 PM dd575eb97d82: Pulling fs layer
10:14:35 PM 2b9309eb6c07: Pulling fs layer
10:14:34 PM 2759c72264c4: Pulling fs layer
10:14:33 PM be5e5d858d8c: Pulling fs layer
10:14:33 PM f9ee43d4d3b5: Pulling fs layer
10:14:33 PM 301f6940435a: Pulling fs layer
10:14:33 PM 47214f2ac238: Pulling fs layer
10:14:33 PM f38df5000877: Pulling fs layer
10:14:33 PM a7617db3795a: Pulling fs layer
10:14:33 PM 54fb39347095: Pulling fs layer
10:14:32 PM 7c76e5cf7755: Pulling fs layer
10:14:32 PM 10.0.20348.1787: Pulling from businesscentral
10:14:31 PM Pulling mcr.microsoft.com/businesscentral:10.0.20348.1787 (this might take some time)
10:14:29 PM Adding Landing Page to Startup Group
10:14:29 PM Add Import bccontainerhelper to PowerShell profile
10:14:29 PM Disabling Server Manager Open At Logon
10:14:29 PM Show hidden files and file types
10:14:29 PM Enabling Font Download in IE
10:14:29 PM Enabling File Download in IE
10:14:29 PM Starting docker
10:14:06 PM Using Lets Encrypt certificate
10:13:10 PM Installing ACME-PS PowerShell Module
10:12:39 PM SetupVm, User: localadmin
10:12:04 PM Launch SetupVm
10:12:02 PM Register RestartContainers Task to start container delayed
10:08:22 PM Installing SqlServer module
9:52:19 PM Installing Microsoft.Graph module
9:51:56 PM Installing AzureAD module
9:45:16 PM Installing Az module
9:45:15 PM Using BcContainerHelper version 5.0.3
9:44:35 PM Installing Latest Business Central Container Helper from PowerShell Gallery
9:44:32 PM SetupStart, User: test-getbcext6$
9:42:10 PM Restarting computer and start Installation tasks
9:41:05 PM Downloading C:\DEMO\InstallOrUpdateDockerEngine.ps1
9:41:05 PM Downloading C:\DEMO\Install-VS2017Community.ps1
9:41:04 PM Downloading c:\demo\restartContainers.ps1
9:41:04 PM Downloading c:\demo\SetupStart.ps1
9:41:04 PM Downloading c:\demo\SetupVm.ps1
9:41:03 PM Downloading c:\demo\SetupNavContainer.ps1
9:41:03 PM Downloading c:\demo\SetupDesktop.ps1
9:41:03 PM Downloading c:\myfolder\SetupWebClient.ps1
9:41:03 PM Turning off IE Enhanced Security Configuration
9:41:03 PM Creating Connect.rdp
9:41:03 PM Downloading C:\inetpub\wwwroot\web.config
9:41:02 PM Downloading C:\inetpub\wwwroot\Microsoft.png
9:41:02 PM Downloading C:\inetpub\wwwroot\line.png
9:41:02 PM Downloading C:\inetpub\wwwroot\status.aspx
9:41:02 PM Downloading C:\inetpub\wwwroot\default.aspx
9:36:58 PM Installing Internet Information Server (this might take a few minutes)
9:36:32 PM Installing PowerShellGet 2.2.5
9:36:27 PM Installing NuGet Package Provider
9:36:01 PM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json
9:36:01 PM Initialize, user: test-getbcext6$
9:36:01 PM Running Windows Server 2022 Datacenter
9:36:01 PM Starting initialization

I can see that standard timeouts for New-BcContainer are 1800 seconds for container operations and 300 seconds for SQL operations. Judging from the log timeline, it should be SQL timeout that gives a problem.

How could we change the timeouts when using aka.ms/getbcext?

P.S. It is also strange that when running the same New-BcContainer command locally, without changing timeouts, it works correctly.

aka.ms/getbcext internal server error

When navigating to aka.ms/getbcext it shows an internal error:

There was an error downloading the template from URI 'https://freddyk.azurewebsites.net/api/MergeArmTemplate'. Ensure that the template is publicly accessible and that the publisher has enabled CORS policy on the endpoint. To deploy this template, download the template manually and paste the contents in the 'Build your own template in the editor' option below.

When trying to copy the entire script and using custom deployment there is an error creating the deployment because TemplateLink cannot be used localy

Lets Encrypt certificate outdated use of API

Guessing this should be reported to navcontainerhelper, but i post it here.

Running aka.ms/getbc with the template mcr.microsoft.com/businesscentral/onprem:no
with lets encrypt gives this error.

12:53:42 PM Restarting computer and start Installation tasks
12:53:40 PM Reverting to Self Signed Certificate
}
"status": 403
"detail": "Account creation on ACMEv1 is disabled. Please upgrade your ACME client to a version that supports ACMEv2 / RFC 8555. See https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 for details.",
"type": "urn:acme:error:unauthorized",

  • Content: {
  • Code: Forbidden
    +Response from server:
    12:53:40 PM Unexpected error
    12:53:20 PM Using Lets Encrypt certificate
    12:53:20 PM Using Nav Container Helper version 0.6.4.9
    12:52:56 PM Installing Latest Nav Container Helper from PowerShell Gallery
    12:52:56 PM Downloading C:\DEMO\Install-VS2017Community.ps1

When trying to download symbols, it gives error regarding the ssl certificate. Since the fallback to self-signed ones instead.

Support for Azure DevTest Lab

I would like to add the arm templates to azure Dev/Test Lab to have a better control over thins like start/stop and to have all these vms in one place (we use dev/test to organize all other vms in azure that fall in that category).

Unfortunatly the structure of this repo does not allow this right now.
According to the docs: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/lab-services/devtest-lab-create-environment-from-arm.md the template files must be seperated in folders and must be named azuredeploy.json like in the default repo https://github.com/Azure/azure-devtestlab/tree/master/Environments

@freddydk are you willing to support this scenario?

Error during deploy of BC Standard from ARM template

When using aka.ms/getbc we get an error at the end of the deployment.
We tested this with a couple of different scenario's.

  1. Standard with aka.ms/getbc
  2. From a release pipeline using the ARM templates
  3. And creating a new container on a new environment with SetupNAVContainer.ps1

All result in the same error.

3:08:03 PM at , C:\demo\setupVm.ps1: line 384
3:08:03 PM at , C:\demo\SetupNavContainer.ps1: line 422
3:08:03 PM at Publish-BcContainerApp, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\4.0.6\AppHandling\Publish-NavContainerApp.ps1: line 144
3:08:03 PM at , C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\4.0.6\AppHandling\Publish-NavContainerApp.ps1: line 293
3:08:03 PM at Invoke-ScriptInBcContainer, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\4.0.6\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 112
3:08:03 PM The tenant 'default' is not accessible, because it is in state Mounting.
2:49:38 PM Running container (this might take some time)
2:49:38 PM Locale nl-NL
2:49:38 PM Version 21.1.48363.49129
2:49:38 PM Country nl

When investigating this issue, we found out the the problem is in the SetupNAVContainer.ps1.
On the Publish-NavContainerApp. If we addd a start-sleep before the publish-navcontainerapp it will continue without an error.

image

Container memory limit configuration in ARM template

When not using a parameter for the container maximum memory and using Isolation option, the container gets a default of 8 GB maximum memory allocated.

We found in script SetupNavContainer.ps1 that we could add a -memoryLimit parameter to New-NavContainer cmdlet on line 340.
However, there is no parameter to configure this value in the ARM template (getbcext.json), so the -memoryLimit addition would be a hardcoded workaround (which we would like to avoid).

How can we configure the value of the container memory limit using a parameterized and flexible approach?

The template deployment 'Microsoft.Template' is not valid according to the validation procedure

Currently we get the following error creating new vm's using aka.ms/getnav with image='microsoft/bcsandbox:dk'

'Error submitting the deployment request.
Additional details from the underlying API that might be helpful: The template deployment 'Microsoft.Template' is not valid according to the validation procedure. The tracking id is '8621c3ef-5b6f-4741-919c-6de6d4ff79c7'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.'

Install VSIX (AL) fails during SetupVM

Got this error re-running of SetupVM.ps1 on a VM โ€ฆ and used the template GetBCExt.json

[H๏ฟฝ]0;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ๏ฟฝ๏ฟฝ[?25h ๏ฟฝ[H๏ฟฝ]0;Administrator: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ๏ฟฝ ๏ฟฝ[H
Code.cmd : (node:608) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
At C:\demo\SetupDesktop.ps1:59 char:9
+         & $codeCmd @('--install-extension', $VsixFileName) | Out-Null
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: ((node:608) [DEP...ethods instead.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

It seams to me, that VSCode may had an update?

VSIX is there:

PS C:\DEMO> Get-Item $vsixFileName
    Directory: C:\ProgramData\navcontainerhelper\Extensions\navserver
Mode                LastWriteTime         Length Name                                                                                                                                                               ----                -------------         ------ ----
-a----        1/17/2019   1:52 PM       46487932 al-2.1.79379.vsix     

image

Problems with 'getbcext.json' as linked ARM template at NetworkSecurityGroup

Get an unexpected error, when I use https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json as linked template:

image

{
  "Parameters":"...",
  "variables": {
    "vmName": "[trim(parameters('vmName'))]",
    "TimezoneId": "[parameters('TimezoneId')]",
    "AcceptEula": "[parameters('AcceptEula')]",
    "vmSize": "[parameters('vmSize')]",
    "RemoteDesktopAccess": "[parameters('RemoteDesktopAccess')]",
    "vmAdminUsername": "[trim(parameters('vmAdminUsername'))]",
    "navAdminUsername": "[trim(parameters('BCAdminUsername'))]",
    "azureSqlAdminUsername": "[trim(parameters('azureSqlAdminUsername'))]",
    "adminPassword": "[parameters('adminPassword')]",
    "navDockerImage": "[trim(parameters('BCDockerImage'))]",
    "registryUsername": "[parameters('registryUsername')]",
    "registryPassword": "[parameters('registryPassword')]",
    "LicenseFileUri": "[parameters('LicenseFileUri')]",
    "SQLServerType": "[parameters('SQLServerType')]",
    "DatabaseBackupFileUri": "[parameters('DatabaseBackupFileUri')]",
    "AppBacpacUri": "[parameters('AppBacpacUri')]",
    "TenantBacpacUri": "[parameters('TenantBacpacUri')]",
    "IncludeAppUris": "[parameters('IncludeAppUris')]",
    "CertificatePfxUrl": "[parameters('CertificatePfxUrl')]",
    "CertificatePfxPassword": "[parameters('CertificatePfxPassword')]",
    "PublicDnsName": "[parameters('PublicDnsName')]",
    "Multitenant": "[parameters('Multitenant')]",
    "AssignPremiumPlan": "No",
    "CreateTestUsers": "No",
    "CreateAadUsers": "[parameters('CreateAadUsers')]",
    "ClickOnce": "[parameters('ClickOnce')]",
    "EnableTaskScheduler": "[parameters('EnableTaskScheduler')]",
    "Office365UserName": "[parameters('Office365UserName')]",
    "Office365Password": "[parameters('Office365Password')]",
    "BingMapsKey": "[parameters('BingMapsKey')]",
    "RequestToken": "[parameters('RequestToken')]",
    "CreateStorageQueue": "Yes",
    "FinalSetupScriptUrl": "[parameters('FinalSetupScriptUrl')]",
    "RunWindowsUpdate": "[parameters('RunWindowsUpdate')]",
    "ContactEMailForLetsEncrypt": "[parameters('ContactEMailForLetsEncrypt')]",
    "AutoShutdown": "[parameters('AutoShutdown')]",
    "AutoShutdownTime": "[parameters('AutoShutdownTime')]",
    "style": "demo",
    "OperatingSystem": "[parameters('OperatingSystem')]",
    "imagePublisher": "[if(equals(variables('OperatingSystem'),'Windows 10'),'MicrosoftWindowsDesktop','MicrosoftWindowsServer')]",
    "imageOffer": "[if(equals(variables('OperatingSystem'),'Windows 10'),'Windows-10','WindowsServer')]",
    "imageSku": "[if(equals(variables('OperatingSystem'),'Windows 10'),'rs5-pro',if(equals(variables('OperatingSystem'),'Windows Server 2016'),'2016-Datacenter',if(equals(variables('OperatingSystem'),'Windows Server 2019'),'2019-Datacenter','2019-Datacenter-with-containers')))]",
    "storageAccountType": "[parameters('StorageAccountType')]",
    "vmStorageAccountContainerName": "vhds",
    "publicIPAddressName": "[concat(variables('vmName'), '_pip')]",
    "storageAccountName": "[concat('storage', uniqueString(resourceGroup().id))]",
    "networkSecurityGroupName": "networksecuritygroup",
    "dnsName": "[tolower(variables('vmName'))]",
    "addressPrefix": "10.0.0.0/16",
    "subnetName": "Subnet",
    "subnetPrefix": "10.0.0.0/24",
    "virtualNetworkName": "virtualnetwork",
    "server1Name": "[tolower(variables('vmName'))]",
    "nic1Name": "[concat(variables('vmName'),'_nic')]",
    "delimiters": [ ",", ";" ],
    "RdpAddresses": "[if(equals(variables('RemoteDesktopAccess'),'-'),'',variables('RemoteDesktopAccess'))]",
    "rdpSourceAddressPrefix": "[split(variables('RdpAddresses'),variables('delimiters'))]",
    "noOfAddresses": "[length(variables('rdpSourceAddressPrefix'))]",
    "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
    "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
    "ScriptCommandToExecute": "powershell.exe -executionpolicy unrestricted -file ",
    "azureSqlServer": "[concat('sql', replace(tolower(variables('vmName')),'-',''))]",
    "azureSqlServerDnsName": "[concat(variables('azureSqlServer'),'.database.windows.net')]",
    "SqlCollation": "Latin1_General_100_CS_AS"
  },
  "resources": [
    {
      "apiVersion": "2015-01-01",
      "name": "linkedTemplate",
      "type": "Microsoft.Resources/deployments",
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "uri": "[parameters('armTemplateUri')]",
          "contentVersion": "1.0.0.0"
        },
        "parameters": {
          "vmName": { "value": "[parameters('vmName')]" },
          "TimezoneId": { "value": "[parameters('TimezoneId')]" },
          "AcceptEula": { "value": "[parameters('AcceptEula')]" },
          "RemoteDesktopAccess": { "value": "[parameters('RemoteDesktopAccess')]" },
          "OperatingSystem": { "value": "[parameters('OperatingSystem')]" },
          "vmSize": { "value": "[parameters('vmSize')]" },
          "StorageAccountType": { "value": "[parameters('StorageAccountType')]" },
          "vmAdminUsername": { "value": "[parameters('vmAdminUsername')]" },
          "BCAdminUsername": { "value": "[parameters('BCAdminUsername')]" },
          "azureSqlAdminUsername": { "value": "[parameters('azureSqlAdminUsername')]" },
          "adminPassword": { "value": "[parameters('adminPassword')]" },
          "BCDockerImage": { "value": "[parameters('BCDockerImage')]" },
          "registryUsername": { "value": "[parameters('registryUsername')]" },
          "registryPassword": { "value": "[parameters('registryPassword')]" },
          "LicenseFileUri": { "value": "[parameters('LicenseFileUri')]" },
          "SQLServerType": { "value": "[parameters('SQLServerType')]" },
          "AppBacpacUri": { "value": "[parameters('AppBacpacUri')]" },
          "TenantBacpacUri": { "value": "[parameters('TenantBacpacUri')]" },
          "IncludeAppUris": { "value": "[parameters('IncludeAppUris')]" },
          "ClickOnce": { "value": "[parameters('ClickOnce')]" },
          "EnableTaskScheduler": { "value": "[parameters('EnableTaskScheduler')]" },
          "Multitenant": { "value": "[parameters('Multitenant')]" },
          "Office365UserName": { "value": "[parameters('Office365UserName')]" },
          "Office365Password": { "value": "[parameters('Office365Password')]" },
          "CreateAadUsers": { "value": "[parameters('CreateAadUsers')]" },
          "CertificatePfxUrl": { "value": "[parameters('CertificatePfxUrl')]" },
          "CertificatePfxPassword": { "value": "[parameters('CertificatePfxPassword')]" },
          "PublicDnsName": { "value": "[parameters('PublicDnsName')]" },
          "FobFileUrl": { "value": "[parameters('FobFileUrl')]" },
          "FinalSetupScriptUrl": { "value": "[parameters('FinalSetupScriptUrl')]" },
          "BingMapsKey": { "value": "[parameters('BingMapsKey')]" },
          "RequestToken": { "value": "[parameters('RequestToken')]" },
          "CreateStorageQueue": { "value": "[variables('CreateStorageQueue')]" },
          "RunWindowsUpdate": { "value": "[parameters('RunWindowsUpdate')]" },
          "ContactEMailForLetsEncrypt": { "value": "[parameters('ContactEMailForLetsEncrypt')]" },
          "AutoShutdown": { "value": "[parameters('AutoShutdown')]" },
          "AutoShutdownTime": { "value": "[parameters('AutoShutdownTime')]" }
        }
      }
    }
  ]
}

Nav server reports "en-us" locale, but currency is GBP when setup

I've run the azuredeploy.json template several times and each time the currency is in GBP with VAT instead of USD and Tax. The region in MySettings is set to United States, but it still appears to be a United Kingdom setup. The extension we're developing will be deployed to US Business Central tenants, so it would be helpful to have a matching development environment. Any help would be appreciated.

Deployment of NAV 2017 failed

I tried to deploy NAV2017.

Parameters:

"parameters": {
      "vmName": {
        "type": "String",
        "value": "***"
      },
      "timezoneId": {
        "type": "String",
        "value": "GMT Standard Time"
      },
      "acceptEula": {
        "type": "String",
        "value": "Yes"
      },
      "remoteDesktopAccess": {
        "type": "String",
        "value": "*"
      },
      "operatingSystem": {
        "type": "String",
        "value": "Windows Server 2019 with Containers"
      },
      "vmSize": {
        "type": "String",
        "value": "Standard_D4_v3"
      },
      "storageAccountType": {
        "type": "String",
        "value": "Standard_LRS"
      },
      "vmAdminUsername": {
        "type": "String",
        "value": "vmadmin"
      },
      "navAdminUsername": {
        "type": "String",
        "value": "admin"
      },
      "azureSqlAdminUsername": {
        "type": "String",
        "value": "sqladmin"
      },
      "adminPassword": {
        "type": "SecureString"
      },
      "navDockerImage": {
        "type": "String",
        "value": "mcr.microsoft.com/dynamicsnav:2017-de"
      },
      "registryUsername": {
        "type": "String",
        "value": ""
      },
      "registryPassword": {
        "type": "SecureString"
      },
      "licenseFileUri": {
        "type": "String",
        "value": ""
      },
      "sqlServerType": {
        "type": "String",
        "value": "SQLExpress"
      },
      "appBacpacUri": {
        "type": "String",
        "value": ""
      },
      "tenantBacpacUri": {
        "type": "String",
        "value": ""
      },
      "includeAppUris": {
        "type": "String",
        "value": ""
      },
      "enableSymbolLoading": {
        "type": "String",
        "value": "Yes"
      },
      "includeCSIDE": {
        "type": "String",
        "value": "Yes"
      },
      "clickOnce": {
        "type": "String",
        "value": "No"
      },
      "enableTaskScheduler": {
        "type": "String",
        "value": "Yes"
      },
      "multitenant": {
        "type": "String",
        "value": "No"
      },
      "office365UserName": {
        "type": "String",
        "value": ""
      },
      "office365Password": {
        "type": "SecureString"
      },
      "createAadUsers": {
        "type": "String",
        "value": "No"
      },
      "certificatePfxUrl": {
        "type": "String",
        "value": ""
      },
      "certificatePfxPassword": {
        "type": "SecureString"
      },
      "publicDnsName": {
        "type": "String",
        "value": ""
      },
      "finalSetupScriptUrl": {
        "type": "String",
        "value": ""
      },
      "bingMapsKey": {
        "type": "String",
        "value": ""
      },
      "requestToken": {
        "type": "String",
        "value": ""
      },
      "runWindowsUpdate": {
        "type": "String",
        "value": "No"
      },
      "contactEMailForLetsEncrypt": {
        "type": "String",
        "value": "***"
      },
      "autoShutdown": {
        "type": "String",
        "value": "Enabled"
      },
      "autoShutdownTime": {
        "type": "String",
        "value": "20:00"
      },
      "addTraefik": {
        "type": "String",
        "value": "No"
      }

Feedback from PowerShell:

Using image mcr.microsoft.com/dynamicsnav:2017-de-ltsc2019
Country de
Version 10.0.29930.0
Locale de-DE
Running mcr.microsoft.com/dynamicsnav:2017-de-ltsc2019 (this will take a few minutes)
NavContainerHelper is version 0.6.2.6
Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
Docker Client Version is 18.09.7
Docker Server Version is 18.09.7
Using image mcr.microsoft.com/dynamicsnav:2017-de-ltsc2019
Publishing port 8080
Publishing port 443
Publishing port 7046
Publishing port 7047
Publishing port 7048
Publishing port 7049
PublicDnsName is ***.westeurope.cloudapp.azure.com
Removing navserver from hosts
Removing C:\ProgramData\NavContainerHelper\Extensions\navserver
Creating Container navserver
Version: 10.0.29930.0-de
Generic Tag: 0.0.9.9
Container OS Version: 10.0.17763.557 (ltsc2019)
Host OS Version: 10.0.17763.615 (ltsc2019)
WARNING: The container operating system matches the host operating system, but the revision is different.
If you encounter issues, you might want to specify -isolation hyperv
Using locale de-DE
Using process isolation
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Files in C:\ProgramData\NavContainerHelper\Extensions\navserver\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- MainLoop.ps1
- SetupCertificate.ps1
- SetupConfiguration.ps1
- SetupWebClient.ps1
- SetupWindowsUsers.ps1
- updatehosts.ps1
Creating container navserver from image mcr.microsoft.com/dynamicsnav:2017-de-ltsc2019
5574f9d4b11da0049ce61aec3f266b9d15df09f289653b6414a355156e7b4234
Waiting for container navserver to be ready
Initializing...
Starting Container
Hostname is navserver
PublicDnsName is ***.westeurope.cloudapp.azure.com
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Certificate File Thumbprint 808C254E50678FFC3F88B041E86FE30A743F4BDF
Import Certificate to LocalMachine\my
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to true
Starting Service Tier
Failed to start service 'Microsoft Dynamics NAV Server [NAV] (MicrosoftDynamicsNavServer$NAV)'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 142
at <ScriptBlock>, C:\Run\start.ps1: line 121
at <ScriptBlock>, <No file>: line 1Error
Initializing...
Starting Container
Hostname is navserver
PublicDnsName is ***.westeurope.cloudapp.azure.com
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Certificate File Thumbprint 808C254E50678FFC3F88B041E86FE30A743F4BDF
Import Certificate to LocalMachine\my
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to true
Starting Service Tier
Failed to start service 'Microsoft Dynamics NAV Server [NAV] (MicrosoftDynamicsNavServer$NAV)'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 142
at <ScriptBlock>, C:\Run\start.ps1: line 121
at <ScriptBlock>, <No file>: line 1
Container output
Initializing...
Starting Container
Hostname is navserver
PublicDnsName is ***.westeurope.cloudapp.azure.com
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Certificate File Thumbprint 808C254E50678FFC3F88B041E86FE30A743F4BDF
Import Certificate to LocalMachine\my
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to true
Starting Service Tier
Failed to start service 'Microsoft Dynamics NAV Server [NAV] (MicrosoftDynamicsNavServer$NAV)'.
at <ScriptBlock>, C:\Run\navstart.ps1: line 142
at <ScriptBlock>, C:\Run\start.ps1: line 121
at <ScriptBlock>, <No file>: line 1
Initialization of container navserver failed
At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.6.2.6\ContainerHandling\Wait-NavContainerReady.ps1:45 char:17
+ ...             throw "Initialization of container $containerName failed" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Initialization ...avserver failed:String) [], RuntimeException
    + FullyQualifiedErrorId : Initialization of container navserver failed

Event Log Says:

Server instance: NAV
Tenant: 
<ii>The service MicrosoftDynamicsNavServer$NAV failed to start. This could be caused by a configuration error. Detailed error information: System.ArgumentException: It is likely that certificate 'CN=***.westeurope.cloudapp.azure.com' may not have a private key that is capable of key exchange or the process may not have access rights for the private key. Please see inner exception for detail. ---> System.Security.Cryptography.CryptographicException: Invalid provider type specified.

Does anybody has a idea about that?

Install-Module powershellget not working

"Install-Module powershellget -RequiredVersion 2.2.1 -force" not working as expected
Actually it download and install version 2.2.4.1 so a command "Import-Module powershellget -RequiredVersion 2.2.1" fail with error:
"The specified module 'powershellget' with version '2.2.1' was not loaded because no valid module file was found in any module directory."

Exception calling "DownloadFile" with "2" argument(s) during setupVM

Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (403) Forbidden."

Used Template:
https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbcext.json

  • Windows Server 2019 with Containers
  • mcr.microsoft.com/businesscentral/onprem:de

Error:
image

Codeunit 50000 stays in database

Hello,
after the automatic configuration of the BC Container there codeunit 50000 stays in database.

If you want to publish an App which is including codeunit 50000 you'll receive an error, "An application object of type 'Codeunit' with ID '50000' is already declared"

The NAVContainerHelper does not support deleting objects.

Best regards

VMs created by the ARM templates should have proper SSL certificates

Currently, the VMs created by the ARM templates have self-signed SSL certificates. In an ideal world, the VMs should have proper SSL certificates that are signed by a trusted authority.

Furthermore, it would be ideal if communication between a client not on the VM and the NAV docker image could be done over SSL.

Wrong NAVServerConfiguration settings with BCContainerHelper 3.0.2

Hi,

After deploying a new release with the latest ARM template and BCContainerHelper 3.0.2, we couldnt log on to BC.
We fixed this by changing the NAVServerConfiguration settings.

Old settings:
AppIdUri: 'https://erp-DE-R20SAAS-TEST-109843.meerstedewonen.meerstedewonen.nl'
WSFederationLoginEndpoint: 'https://login.microsoftonline.com/Common/wsfed?wa=wsignin1.0%26wtrealm=https://erp-DE-R20SAAS-TEST-109843.meerstedewonen.meerstedewonen.nl'

New settings:
AppIdUri: 'https://erp-DE-R20SAAS-TEST-109843.meerstedewonen.nl/BC/'
WSFederationLoginEndpoint: 'https://login.microsoftonline.com/Common/wsfed?wa=wsignin1.0%26wtrealm=https://erp-DE-R20SAAS-TEST-109843.meerstedewonen.nl/BC/'

So we have removed the double domain name, and added '/BC/' to the setting.

After this change could login again.

Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (401) Unauthorized."

I've been trying to create three instances of VMs with the aka.ms/getbc ARM template, but each time i get this error:
Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (401) Unauthorized."

Here is the full log:

<font color="Green">8:15:35 PM Starting initialization</font>
<font color="Gray">8:15:35 PM Running Windows Server 2019 Datacenter</font>
<font color="Gray">8:15:35 PM Initialize, user: gvtest$</font>
<font color="Gray">8:15:35 PM TemplateLink: https://raw.githubusercontent.com/Microsoft/nav-arm-templates/master/getbc.json</font>
<font color="Gray">8:15:53 PM Installing PowerShellGet 2.2.1</font>
<font color="Gray">8:16:15 PM Installing Internet Information Server (this might take a few minutes)</font>
<font color="Gray">8:18:03 PM Downloading C:\inetpub\wwwroot\default.aspx</font>
<font color="Gray">8:18:03 PM Downloading C:\inetpub\wwwroot\status.aspx</font>
<font color="Gray">8:18:04 PM Downloading C:\inetpub\wwwroot\line.png</font>
<font color="Gray">8:18:04 PM Downloading C:\inetpub\wwwroot\Microsoft.png</font>
<font color="Gray">8:18:04 PM Downloading C:\inetpub\wwwroot\web.config</font>
<font color="Gray">8:18:04 PM Creating Connect.rdp</font>
<font color="Gray">8:18:04 PM Turning off IE Enhanced Security Configuration</font>
<font color="Gray">8:18:04 PM Downloading c:\myfolder\SetupWebClient.ps1</font>
<font color="Gray">8:18:05 PM Downloading c:\demo\SetupDesktop.ps1</font>
<font color="Gray">8:18:05 PM Downloading c:\demo\SetupNavContainer.ps1</font>
<font color="Gray">8:18:05 PM Downloading c:\demo\SetupVm.ps1</font>
<font color="Gray">8:18:05 PM Downloading c:\demo\SetupStart.ps1</font>
<font color="Gray">8:18:06 PM Downloading c:\demo\restartContainers.ps1</font>
<font color="Gray">8:18:06 PM Downloading C:\DEMO\Install-VS2017Community.ps1</font>
<font color="Gray">8:18:08 PM Restarting computer and start Installation tasks</font>
<font color="Gray">8:20:30 PM SetupStart, User: gvtest$</font>
<font color="Gray">8:20:34 PM Installing Latest Business Central Container Helper from PowerShell Gallery</font>
<font color="Gray">8:20:58 PM Using BcContainerHelper version 1.0.13</font>
<font color="Gray">8:20:58 PM Installing Az module</font>
<font color="Gray">8:24:08 PM Installing AzureAD module</font>
<font color="Gray">8:24:23 PM Installing SqlServer module</font>
<font color="Gray">8:24:57 PM Register RestartContainers Task to start container delayed</font>
<font color="Gray">8:24:58 PM Launch SetupVm</font>
<font color="Gray">8:25:03 PM SetupVm, User: vmadmin</font>
<font color="Gray">8:25:05 PM Starting docker</font>
<font color="Gray">8:25:06 PM Enabling Docker API</font>
<font color="Gray">8:25:07 PM Enabling File Download in IE</font>
<font color="Gray">8:25:07 PM Enabling Font Download in IE</font>
<font color="Gray">8:25:07 PM Show hidden files and file types</font>
<font color="Gray">8:25:07 PM Disabling Server Manager Open At Logon</font>
<font color="Gray">8:25:07 PM Add Import bccontainerhelper to PowerShell profile</font>
<font color="Gray">8:25:07 PM Adding Landing Page to Startup Group</font>
<font color="Gray">8:25:10 PM Pulling mcr.microsoft.com/dynamicsnav:10.0.17763.1577-generic (this might take some time)</font>
<font color="Gray">8:25:16 PM 10.0.17763.1577-generic: Pulling from dynamicsnav</font>
<font color="Gray">8:25:16 PM 4612f6d0b889: Already exists</font>
<font color="Gray">8:25:16 PM 680bbdbacf1b: Already exists</font>
<font color="Gray">8:25:16 PM 4e3beecdf45e: Pulling fs layer</font>
<font color="Gray">8:25:16 PM b8e7341e04d6: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 9ef9abd183e6: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 4ef826278438: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 813b68b60fc7: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 5522e2288ed3: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 5533abc6c2ca: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 5c9291d668d5: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 2954bb9ab782: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 75b51560926b: Pulling fs layer</font>
<font color="Gray">8:25:16 PM a47b5aa915ae: Pulling fs layer</font>
<font color="Gray">8:25:16 PM e35af2103925: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 05226bf06156: Pulling fs layer</font>
<font color="Gray">8:25:16 PM e9f6b2cab1c3: Pulling fs layer</font>
<font color="Gray">8:25:16 PM ca6a7e44004b: Pulling fs layer</font>
<font color="Gray">8:25:16 PM 4ef826278438: Waiting</font>
<font color="Gray">8:25:16 PM 813b68b60fc7: Waiting</font>
<font color="Gray">8:25:16 PM 5522e2288ed3: Waiting</font>
<font color="Gray">8:25:16 PM 5533abc6c2ca: Waiting</font>
<font color="Gray">8:25:16 PM 5c9291d668d5: Waiting</font>
<font color="Gray">8:25:16 PM 2954bb9ab782: Waiting</font>
<font color="Gray">8:25:16 PM 75b51560926b: Waiting</font>
<font color="Gray">8:25:16 PM a47b5aa915ae: Waiting</font>
<font color="Gray">8:25:16 PM e35af2103925: Waiting</font>
<font color="Gray">8:25:16 PM 05226bf06156: Waiting</font>
<font color="Gray">8:25:16 PM e9f6b2cab1c3: Waiting</font>
<font color="Gray">8:25:16 PM ca6a7e44004b: Waiting</font>
<font color="Gray">8:25:16 PM 9ef9abd183e6: Verifying Checksum</font>
<font color="Gray">8:25:16 PM 9ef9abd183e6: Download complete</font>
<font color="Gray">8:25:20 PM 4ef826278438: Verifying Checksum</font>
<font color="Gray">8:25:20 PM 4ef826278438: Download complete</font>
<font color="Gray">8:25:20 PM 813b68b60fc7: Verifying Checksum</font>
<font color="Gray">8:25:20 PM 813b68b60fc7: Download complete</font>
<font color="Gray">8:25:20 PM 5522e2288ed3: Verifying Checksum</font>
<font color="Gray">8:25:20 PM 5522e2288ed3: Download complete</font>
<font color="Gray">8:25:20 PM 5533abc6c2ca: Verifying Checksum</font>
<font color="Gray">8:25:20 PM 5533abc6c2ca: Download complete</font>
<font color="Gray">8:25:20 PM 5c9291d668d5: Verifying Checksum</font>
<font color="Gray">8:25:20 PM 5c9291d668d5: Download complete</font>
<font color="Gray">8:25:20 PM b8e7341e04d6: Verifying Checksum</font>
<font color="Gray">8:25:20 PM b8e7341e04d6: Download complete</font>
<font color="Gray">8:25:21 PM 75b51560926b: Verifying Checksum</font>
<font color="Gray">8:25:21 PM 75b51560926b: Download complete</font>
<font color="Gray">8:25:21 PM 4e3beecdf45e: Verifying Checksum</font>
<font color="Gray">8:25:21 PM 4e3beecdf45e: Download complete</font>
<font color="Gray">8:25:22 PM e35af2103925: Verifying Checksum</font>
<font color="Gray">8:25:22 PM e35af2103925: Download complete</font>
<font color="Gray">8:25:23 PM 05226bf06156: Verifying Checksum</font>
<font color="Gray">8:25:23 PM 05226bf06156: Download complete</font>
<font color="Gray">8:25:23 PM e9f6b2cab1c3: Download complete</font>
<font color="Gray">8:25:24 PM ca6a7e44004b: Verifying Checksum</font>
<font color="Gray">8:25:24 PM ca6a7e44004b: Download complete</font>
<font color="Gray">8:25:25 PM a47b5aa915ae: Download complete</font>
<font color="Gray">8:25:27 PM 2954bb9ab782: Verifying Checksum</font>
<font color="Gray">8:25:27 PM 2954bb9ab782: Download complete</font>
<font color="Gray">8:30:18 PM 4e3beecdf45e: Pull complete</font>
<font color="Gray">8:31:57 PM b8e7341e04d6: Pull complete</font>
<font color="Gray">8:31:57 PM 9ef9abd183e6: Pull complete</font>
<font color="Gray">8:32:51 PM 4ef826278438: Pull complete</font>
<font color="Gray">8:32:52 PM 813b68b60fc7: Pull complete</font>
<font color="Gray">8:32:52 PM 5522e2288ed3: Pull complete</font>
<font color="Gray">8:32:53 PM 5533abc6c2ca: Pull complete</font>
<font color="Gray">8:32:53 PM 5c9291d668d5: Pull complete</font>
<font color="Gray">8:34:18 PM 2954bb9ab782: Pull complete</font>
<font color="Gray">8:34:19 PM 75b51560926b: Pull complete</font>
<font color="Gray">8:34:51 PM a47b5aa915ae: Pull complete</font>
<font color="Gray">8:34:51 PM e35af2103925: Pull complete</font>
<font color="Gray">8:34:52 PM 05226bf06156: Pull complete</font>
<font color="Gray">8:34:52 PM e9f6b2cab1c3: Pull complete</font>
<font color="Gray">8:34:53 PM ca6a7e44004b: Pull complete</font>
<font color="Gray">8:34:53 PM Digest: sha256:de39ba7d92d0bab9e8ccfef544f1833352926857822cd2145ccb2b381f307ecb</font>
<font color="Gray">8:34:53 PM Status: Downloaded newer image for mcr.microsoft.com/dynamicsnav:10.0.17763.1577-generic</font>
<font color="Gray">8:34:53 PM Installing Visual C++ Redist</font>
<font color="Gray">8:35:04 PM Installing SQL Native Client</font>
<font color="Gray">8:35:06 PM Installing OpenXML 2.5</font>
<font color="Gray">8:37:55 PM Creating Aad Apps for Office 365 integration</font>
<font color="Gray">8:38:19 PM Using artifactUrl https://bcartifacts.azureedge.net/onprem/17.1.18256.18792/w1</font>
<font color="Gray">8:38:19 PM Country w1</font>
<font color="Gray">8:38:19 PM Version 17.1.18256.18792</font>
<font color="Gray">8:38:19 PM Locale en-US</font>
<font color="Gray">8:38:19 PM Running container (this might take some time)</font>
<font color="Red">8:38:22 PM Container output</font>
<font color="Red">8:38:22 PM Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (401) Unauthorized."</font>
<font color="Red">8:38:22 PM at Download-File, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\1.0.13\Misc\Download-File.ps1: line 53</font>
<font color="Red">8:38:22 PM at New-BcImage, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\1.0.13\ContainerHandling\New-NavImage.ps1: line 370</font>
<font color="Red">8:38:22 PM at New-BcContainer, C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\1.0.13\ContainerHandling\New-NavContainer.ps1: line 522</font>
<font color="Red">8:38:22 PM at <ScriptBlock>, C:\demo\SetupNavContainer.ps1: line 340</font>
<font color="Red">8:38:22 PM at <ScriptBlock>, C:\demo\setupVm.ps1: line 296</font>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.