Cannot provision nginx in Sandbox VM based on the Exercise - Create an Azure Virtual Machine

Kenan Dalley 16 Reputation points
2022-11-10T22:41:03.39+00:00

I'm trying to run the "Create Azure Virtual Machine" Exercise and receive the following error when trying to provision nginx using the supplied command. Because of this, the following exercise with trying to connect to the VM as a webserver to return the "Welcome to Azure" message fails because there's no webserver running.

I tried it twice in the same Cloud Shell, then I exited the Cloud Shell and started over all with the same issue.

kenan [ ~ ]$ az vm extension set \
--resource-group learn-3f032c88-1794-4c6f-be3d-e22175adeb50 \
--vm-name my-vm \
--name customScript \
--publisher Microsoft.Azure.Extensions \
--version 2.1 \
--settings '{"fileUris":["https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-nginx.sh"]}' \
--protected-settings '{"commandToExecute": "./configure-nginx.sh"}'
(VMExtensionProvisioningError) VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1
[stdout]
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2449 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [424 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [961 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [133 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1239 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [284 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [19.0 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [3836 B]
Get:14 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2790 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [513 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [991 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [137 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1853 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [401 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [24.9 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6012 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [53.2 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [14.5 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [18.1 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [8668 B]
Fetched 26.4 MB in 7s (3913 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
linux-headers-4.15.0-194
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0
libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4 nginx-common
nginx-core
Suggested packages:
libgd-tools fcgiwrap nginx-doc ssl-cert
<h2>Welcome to Azure! My name is my-vm.</h2>

[stderr]
r directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_restricted_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_main_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_binary-amd64_Packages - open (2: No such file or directory)
tee: /var/www/html/index.html: No such file or directory
"

More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot
Code: VMExtensionProvisioningError
Message: VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1
[stdout]
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2449 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [424 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [961 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [133 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1239 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [284 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [19.0 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [3836 B]
Get:14 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2790 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [513 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [991 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [137 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1853 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [401 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [24.9 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6012 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [53.2 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [14.5 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [18.1 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [8668 B]
Fetched 26.4 MB in 7s (3913 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
linux-headers-4.15.0-194
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0
libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4 nginx-common
nginx-core
Suggested packages:
libgd-tools fcgiwrap nginx-doc ssl-cert
<h2>Welcome to Azure! My name is my-vm.</h2>

[stderr]
r directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_restricted_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_bionic-security_main_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-backports_main_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_multiverse_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_restricted_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic-updates_main_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_multiverse_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_restricted_binary-amd64_Packages - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_i18n_Translation-en - open (2: No such file or directory)
E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_main_binary-amd64_Packages - open (2: No such file or directory)
tee: /var/www/html/index.html: No such file or directory
"

More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot

Azure Azure Training
{count} votes

7 answers

Sort by: Most helpful
  1. kobulloc-MSFT 26,801 Reputation points Microsoft Employee Moderator
    2023-04-19T01:28:10.1533333+00:00

    Hello!

    Where am I seeing this? Subject: Exam AZ-900: Microsoft Azure Fundamentals Learning Path: Azure Fundamentals: Describe Azure architecture and services Module: Describe Azure compute and networking services Unit: 3 of 14 Exercise - Create an Azure Virtual Machine I'm running into the following error when attempting to complete az vm extension set on step 2: (VMExtensionProvisioningError) VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1

    I was finally able to reproduce this myself and would like to add my solution as changing --version 2.1 to --version 2.1.7 , resetting the Azure Cloud Shell, and changing the path didn't work. Ultimately, deleting the VM, then starting over from scratch at step 1 was successful. The command to do that is this az vm delete:

    az vm delete \
        --resource-group myResourceGroup \
        --name myVM \
        --force-deletion none
    

    In practice, that looks more like this (you'll need to use your own resource group):

    az vm delete \
        --resource-group learn-12abcdef-gh34-5i67-a1b2-3456789cd012 \
        --name my-vm \
        --force-deletion none
    

    I hope this helps anyone else who runs into this!

    5 people found this answer helpful.

  2. Simon Chow 21 Reputation points
    2022-11-14T12:38:16.173+00:00

    I changed --version 2.1 to --version 2.1.7 then it worked!
    It seems like a Azure Linux Agent version problem.

    4 people found this answer helpful.

  3. rseelam21647 6 Reputation points
    2022-11-17T20:38:13.523+00:00

    tried to create Ngenix extension,

    issue with below error

    [ ~ ]$ az vm extension set --resource-group learn-43492a2e-3690-4e8d-a0cb-8360bfe467b0 --vm-name my-vm --name customScript --publisher Microsoft.Azure.Extensions --version 2.1 --settings '{"fileUris":["https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-nginx.sh"]}' --protected-settings '{"commandToExecute": "./configure-nginx.sh"}'
    (VMExtensionProvisioningError) VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1
    [stdout]
    x-mod-stream libtiff5 libwebp6 libxpm4 nginx-common
    nginx-core
    Suggested packages:
    libgd-tools fcgiwrap nginx-doc ssl-cert
    The following NEW packages will be installed:
    fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0
    libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
    libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
    libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4 nginx
    nginx-common nginx-core
    0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
    Need to get 2464 kB of archives.
    After this operation, 8217 kB of additional disk space will be used.
    Get:1 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjpeg-turbo8 amd64 1.5.2-0ubuntu5.18.04.6 [111 kB]
    Get:2 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
    Get:3 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 fontconfig-config all 2.12.6-0ubuntu2 [55.8 kB]
    Get:4 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libfontconfig1 amd64 2.12.6-0ubuntu2 [137 kB]
    Get:5 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]
    Get:6 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libjbig0 amd64 2.1-3.1build1 [26.7 kB]
    Ign:7 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.7
    Get:8 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libwebp6 amd64 0.6.1-2ubuntu0.18.04.1 [186 kB]
    Get:9 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libxpm4 amd64 1:3.5.12-1 [34.0 kB]
    Get:10 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgd3 amd64 2.2.5-4ubuntu0.5 [119 kB]
    Ign:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-common all 1.14.0-0ubuntu1.10
    Ign:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-geoip amd64 1.14.0-0ubuntu1.10
    Ign:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-image-filter amd64 1.14.0-0ubuntu1.10
    Ign:14 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.0-0ubuntu1.10
    Ign:15 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-mail amd64 1.14.0-0ubuntu1.10
    Ign:16 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-stream amd64 1.14.0-0ubuntu1.10
    Ign:17 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-core amd64 1.14.0-0ubuntu1.10
    Ign:18 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx all 1.14.0-0ubuntu1.10
    Err:7 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.7
    404 Not Found [IP: 40.81.13.82 80]
    Err:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-common all 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-geoip amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-image-filter amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:14 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:15 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-mail amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:16 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-stream amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:17 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-core amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:18 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx all 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Fetched 1712 kB in 2s (1133 kB/s)
    <html><body><h2>Welcome to Azure! My name is my-vm.</h2></body></html>

    [stderr]
    W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed
    E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/t/tiff/libtiff5_4.0.9-5ubuntu0.7_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx-common_1.14.0-0ubuntu1.10_all.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-http-geoip_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-http-image-filter_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-mail_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-stream_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx-core_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx_1.14.0-0ubuntu1.10_all.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    tee: /var/www/html/index.html: No such file or directory
    "

    More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot
    Code: VMExtensionProvisioningError
    Message: VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1
    [stdout]
    x-mod-stream libtiff5 libwebp6 libxpm4 nginx-common
    nginx-core
    Suggested packages:
    libgd-tools fcgiwrap nginx-doc ssl-cert
    The following NEW packages will be installed:
    fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0
    libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
    libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter
    libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4 nginx
    nginx-common nginx-core
    0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
    Need to get 2464 kB of archives.
    After this operation, 8217 kB of additional disk space will be used.
    Get:1 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjpeg-turbo8 amd64 1.5.2-0ubuntu5.18.04.6 [111 kB]
    Get:2 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
    Get:3 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 fontconfig-config all 2.12.6-0ubuntu2 [55.8 kB]
    Get:4 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libfontconfig1 amd64 2.12.6-0ubuntu2 [137 kB]
    Get:5 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]
    Get:6 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libjbig0 amd64 2.1-3.1build1 [26.7 kB]
    Ign:7 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.7
    Get:8 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libwebp6 amd64 0.6.1-2ubuntu0.18.04.1 [186 kB]
    Get:9 http://azure.archive.ubuntu.com/ubuntu bionic/main amd64 libxpm4 amd64 1:3.5.12-1 [34.0 kB]
    Get:10 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgd3 amd64 2.2.5-4ubuntu0.5 [119 kB]
    Ign:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-common all 1.14.0-0ubuntu1.10
    Ign:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-geoip amd64 1.14.0-0ubuntu1.10
    Ign:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-image-filter amd64 1.14.0-0ubuntu1.10
    Ign:14 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.0-0ubuntu1.10
    Ign:15 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-mail amd64 1.14.0-0ubuntu1.10
    Ign:16 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-stream amd64 1.14.0-0ubuntu1.10
    Ign:17 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-core amd64 1.14.0-0ubuntu1.10
    Ign:18 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx all 1.14.0-0ubuntu1.10
    Err:7 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.7
    404 Not Found [IP: 40.81.13.82 80]
    Err:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-common all 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-geoip amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-image-filter amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:14 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:15 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-mail amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:16 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-stream amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:17 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-core amd64 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Err:18 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx all 1.14.0-0ubuntu1.10
    404 Not Found [IP: 40.81.13.82 80]
    Fetched 1712 kB in 2s (1133 kB/s)
    <html><body><h2>Welcome to Azure! My name is my-vm.</h2></body></html>

    [stderr]
    W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: Splitting up /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_bionic_InRelease into data and signature failed
    E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/t/tiff/libtiff5_4.0.9-5ubuntu0.7_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx-common_1.14.0-0ubuntu1.10_all.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-http-geoip_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-http-image-filter_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-mail_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/libnginx-mod-stream_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx-core_1.14.0-0ubuntu1.10_amd64.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/n/nginx/nginx_1.14.0-0ubuntu1.10_all.deb 404 Not Found [IP: 40.81.13.82 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    tee: /var/www/html/index.html: No such file or directory
    "

    More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot

    Thanks,
    Rseelam

    1 person found this answer helpful.

  4. David Skrostrup 6 Reputation points
    2022-12-16T10:22:15.537+00:00

    I also get an error on this exercise.
    I've tried restarting the Sandbox several times and also the suggested "--version 2.1.7" workaround.

    david [ ~ ]$ az vm extension set --resource-group learn-e7d2ce92-cb61-4b86-8174-8aab434a2f86 --vm-name my-vm --name customScript --publisher Microsoft.Azure.Extensions --version 2.1 --settings '{"fileUris":["https://raw.githubusercontent.com/MicrosoftDocs/mslearn-welcome-to-azure/master/configure-nginx.sh"]}' --protected-settings '{"commandToExecute": "./configure-nginx.sh"}'
    (VMExtensionProvisioningError) VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1
    [stdout]
    Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
    Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
    Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2496 kB]
    Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
    Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
    Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1250 kB]
    Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [289 kB]
    Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [19.1 kB]
    Get:10 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [3908 B]
    Get:11 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
    Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
    Get:13 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
    Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2832 kB]
    Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1862 kB]
    Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [403 kB]
    Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [24.9 kB]
    Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6072 B]
    Get:19 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [53.3 kB]
    Get:20 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [14.6 kB]
    Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [18.1 kB]
    Get:22 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [8668 B]
    Fetched 23.3 MB in 8s (2923 kB/s)
    Reading package lists...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    <html><body><h2>Welcome to Azure! My name is my-vm.</h2></body></html>

    [stderr]
    E: Unable to locate package nginx
    tee: /var/www/html/index.html: No such file or directory
    "

    More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot
    Code: VMExtensionProvisioningError
    Message: VM has reported a failure when processing extension 'customScript'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1
    [stdout]
    Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
    Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
    Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
    Get:4 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2496 kB]
    Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
    Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
    Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1250 kB]
    Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [289 kB]
    Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [19.1 kB]
    Get:10 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [3908 B]
    Get:11 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
    Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
    Get:13 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
    Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2832 kB]
    Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1862 kB]
    Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [403 kB]
    Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [24.9 kB]
    Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6072 B]
    Get:19 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [53.3 kB]
    Get:20 http://archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [14.6 kB]
    Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [18.1 kB]
    Get:22 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [8668 B]
    Fetched 23.3 MB in 8s (2923 kB/s)
    Reading package lists...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    <html><body><h2>Welcome to Azure! My name is my-vm.</h2></body></html>

    [stderr]
    E: Unable to locate package nginx
    tee: /var/www/html/index.html: No such file or directory
    "

    More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot

    1 person found this answer helpful.
    0 comments No comments

  5. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2022-11-12T18:41:13.497+00:00

    @Kenan Dalley , Thanks for the follow-up, I see the provisioning was successful.
    Glad to know that the issue resolved. Much appreciate the update.

    I have tried the same steps on 2 different browsers, multiple times, but I did not receive/hit this issue.

    I understand it was a temporary problem, if you have any further questions on this, please let us know, we would be more than happy to assist you further.
    Apologies for the inconvenience it caused.

    259806-image.png

    Happy Learning!

    You have a great weekend.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.