deployment of the initial lab environment is failing with this error:
{"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":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"Conflict\",\r\n \"message\": \"{\r\n \\"status\\": \\"Failed\\",\r\n \\"error\\": {\r\n \\"code\\": \\"ResourceDeploymentFailure\\",\r\n \\"message\\": \\"The resource operation completed with terminal provisioning state 'Failed'.\\",\r\n \\"details\\": [\r\n {\r\n \\"code\\": \\"VMExtensionProvisioningError\\",\r\n \\"message\\": \\"VM has reported a failure when processing extension 'script'. Error message: \\\\"Enable failed: failed to execute command: command terminated with exit status=127\\n[stdout]\\nHit:1 http://archive.ubuntu.com/ubuntu xenial InRelease\\nGet:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]\\nGet:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]\\nGet:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]\\nGet:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [575 kB]\\nGet:6 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [241 kB]\\nGet:7 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [398 kB]\\nGet:8 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [154 kB]\\nGet:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,460 B]\\nGet:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [873 kB]\\nGet:11 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [355 kB]\\nGet:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [702 kB]\\nGet:13 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [286 kB]\\nGet:14 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.4 kB]\\nGet:15 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7,288 B]\\nGet:16 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]\\nGet:17 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,804 B]\\nGet:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,184 B]\\nFetched 3,949 kB in 9s (408 kB/s)\\nReading package lists...\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nSome packages could not be installed. This may mean that you have\\nrequested an impossible situation or if you are using the unstable\\ndistribution that some required packages have not yet been created\\nor been moved out of Incoming.\\nThe following information may help to resolve the situation:\\n\\nThe following packages have unmet dependencies:\\n nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nSuggested packages:\\n git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk\\n gitweb git-arch git-cvs git-mediawiki git-svn\\nThe following packages will be upgraded:\\n git\\n1 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.\\nNeed to get 2,714 kB of archives.\\nAfter this operation, 4,096 B of additional disk space will be used.\\nGet:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 git amd64 1:2.7.4-0ubuntu1.5 [2,714 kB]\\nFetched 2,714 kB in 0s (3,527 kB/s)\\n(Reading database ... \\r(Reading database ... 5%\\r(Reading database ... 10%\\r(Reading database ... 15%\\r(Reading database ... 20%\\r(Reading database ... 25%\\r(Reading database ... 30%\\r(Reading database ... 35%\\r(Reading database ... 40%\\r(Reading database ... 45%\\r(Reading database ... 50%\\r(Reading database ... 55%\\r(Reading database ... 60%\\r(Reading database ... 65%\\r(Reading database ... 70%\\r(Reading database ... 75%\\r(Reading database ... 80%\\r(Reading database ... 85%\\r(Reading database ... 90%\\r(Reading database ... 95%\\r(Reading database ... 100%\\r(Reading database ... 55046 files and directories currently installed.)\\r\\nPreparing to unpack .../git_1%3a2.7.4-0ubuntu1.5_amd64.deb ...\\r\\nUnpacking git (1:2.7.4-0ubuntu1.5) over (1:2.7.4-0ubuntu1.4) ...\\r\\nSetting up git (1:2.7.4-0ubuntu1.5) ...\\r\\n\\n[stderr]\\nE: Unable to locate package npm\\nE: Unable to correct problems, you have held broken packages.\\ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\ndebconf: falling back to frontend: Readline\\ndebconf: unable to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure: unable to re-open stdin: \\nCloning into 'nodejs-demoapp'...\\nsudo: npm: command not found\\nsudo: npm: command not found\\nDemoAppConfig.sh: 15: DemoAppConfig.sh: forever: not found\\n\\\\".\\"\r\n }\r\n ]\r\n }\r\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}
deployment of the initial lab environment is failing with this error:
{"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":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n \"message\": \"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.\",\r\n \"details\": [\r\n {\r\n \"code\": \"Conflict\",\r\n \"message\": \"{\r\n \\"status\\": \\"Failed\\",\r\n \\"error\\": {\r\n \\"code\\": \\"ResourceDeploymentFailure\\",\r\n \\"message\\": \\"The resource operation completed with terminal provisioning state 'Failed'.\\",\r\n \\"details\\": [\r\n {\r\n \\"code\\": \\"VMExtensionProvisioningError\\",\r\n \\"message\\": \\"VM has reported a failure when processing extension 'script'. Error message: \\\\"Enable failed: failed to execute command: command terminated with exit status=127\\n[stdout]\\nHit:1 http://archive.ubuntu.com/ubuntu xenial InRelease\\nGet:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]\\nGet:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]\\nGet:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]\\nGet:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [575 kB]\\nGet:6 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [241 kB]\\nGet:7 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [398 kB]\\nGet:8 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [154 kB]\\nGet:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,460 B]\\nGet:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [873 kB]\\nGet:11 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [355 kB]\\nGet:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [702 kB]\\nGet:13 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [286 kB]\\nGet:14 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.4 kB]\\nGet:15 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7,288 B]\\nGet:16 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [4,456 B]\\nGet:17 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,804 B]\\nGet:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [4,184 B]\\nFetched 3,949 kB in 9s (408 kB/s)\\nReading package lists...\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nSome packages could not be installed. This may mean that you have\\nrequested an impossible situation or if you are using the unstable\\ndistribution that some required packages have not yet been created\\nor been moved out of Incoming.\\nThe following information may help to resolve the situation:\\n\\nThe following packages have unmet dependencies:\\n nodejs-legacy : Depends: nodejs (>= 0.6.19~dfsg1-3~) but it is not going to be installed\\nReading package lists...\\nBuilding dependency tree...\\nReading state information...\\nSuggested packages:\\n git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk\\n gitweb git-arch git-cvs git-mediawiki git-svn\\nThe following packages will be upgraded:\\n git\\n1 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.\\nNeed to get 2,714 kB of archives.\\nAfter this operation, 4,096 B of additional disk space will be used.\\nGet:1 http://security.ubuntu.com/ubuntu xenial-security/main amd64 git amd64 1:2.7.4-0ubuntu1.5 [2,714 kB]\\nFetched 2,714 kB in 0s (3,527 kB/s)\\n(Reading database ... \\r(Reading database ... 5%\\r(Reading database ... 10%\\r(Reading database ... 15%\\r(Reading database ... 20%\\r(Reading database ... 25%\\r(Reading database ... 30%\\r(Reading database ... 35%\\r(Reading database ... 40%\\r(Reading database ... 45%\\r(Reading database ... 50%\\r(Reading database ... 55%\\r(Reading database ... 60%\\r(Reading database ... 65%\\r(Reading database ... 70%\\r(Reading database ... 75%\\r(Reading database ... 80%\\r(Reading database ... 85%\\r(Reading database ... 90%\\r(Reading database ... 95%\\r(Reading database ... 100%\\r(Reading database ... 55046 files and directories currently installed.)\\r\\nPreparing to unpack .../git_1%3a2.7.4-0ubuntu1.5_amd64.deb ...\\r\\nUnpacking git (1:2.7.4-0ubuntu1.5) over (1:2.7.4-0ubuntu1.4) ...\\r\\nSetting up git (1:2.7.4-0ubuntu1.5) ...\\r\\n\\n[stderr]\\nE: Unable to locate package npm\\nE: Unable to correct problems, you have held broken packages.\\ndebconf: unable to initialize frontend: Dialog\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\ndebconf: falling back to frontend: Readline\\ndebconf: unable to initialize frontend: Readline\\ndebconf: (This frontend requires a controlling tty.)\\ndebconf: falling back to frontend: Teletype\\ndpkg-preconfigure: unable to re-open stdin: \\nCloning into 'nodejs-demoapp'...\\nsudo: npm: command not found\\nsudo: npm: command not found\\nDemoAppConfig.sh: 15: DemoAppConfig.sh: forever: not found\\n\\\\".\\"\r\n }\r\n ]\r\n }\r\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}