microsoft / nav-arm-templates

ARM (Azure Resource Manager) templates for Microsoft Dynamics NAV
MIT License
53 stars 55 forks source link

Creating VMs with ARM Template fails #155

Closed tomddlc closed 3 years ago

tomddlc commented 3 years ago

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

freddydk commented 3 years ago

Apparently Microsoft Download removed one of the files we have a dependency on. I have updated the ContainerHelper to download that file from my own CDN - so it should work again.

tomddlc commented 3 years ago

Thank you very much for your fast response. It seems to work perfectly now 👍

freddydk commented 3 years ago

It was really another case of this: https://freddysblog.com/2020/08/18/one-of-these-days/