Following instructions in creating VM and Updating Extension - nginx - getting error

Leroy Magnus 55 Reputation points
2023-02-06T22:17:29.2933333+00:00

I copy the command listed in the exercise and paste it into the virtual machine in order to setup nginx on the VM - I'm getting an error message that it can't find the package in the location provided.

<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

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,209 questions
{count} votes

2 answers

Sort by: Most helpful
  1. M. Blauw 5 Reputation points
    2023-02-10T12:57:03.4933333+00:00

    For me the same is happening when working on this exercise. Restarted the sandbox 2 times but unfortunately it does not seem to solve the issue.

    EDIT: after restarting multiple times (~5) and deleting the VM through Azure Portal it now seems to work.

    1 person found this answer helpful.
    0 comments No comments

  2. kobulloc-MSFT 25,561 Reputation points Microsoft Employee
    2023-02-06T22:59:58.0466667+00:00

    Hello, @Leroy Magnus !

    Step 2 has an external dependency which fails in rare cases. Resetting the sandbox is the most reliable way to resolve this. If you continue to see this after a sandbox reset, let us know in the comments and we'll continue to troubleshoot this. Thank you for your patience and for reporting this!

    Where are you seeing this issue?

    Why am I running into an error when running the custom nginx script?

    In rare cases, this external dependency will result in an error. The most reliable way to correct this is to restart the sandbox and run the commands again.

    We apologize for the inconvenience and are reviewing alternative options for this part of the training. Thank you for reporting this!