Task 1 Does not work: Create a Linux virtual machine and install Nginx

AZ Brown, Martha C. (LARC-D314) 15 Reputation points
2023-07-29T20:06:49.94+00:00

IScreenshot 2023-07-29 at 4.03.55 PM

Screenshot 2023-07-29 at 4.04.18 PM.png

I copied and pasted the script into the shell. I got an error message.

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 skilled behavior.
626 questions
{count} votes

2 answers

Sort by: Most helpful
  1. VGrandhi 185 Reputation points Microsoft Vendor
    2023-08-01T08:01:55.4733333+00:00

    Hi @AZ Brown, Martha C. (LARC-D314),

    We apologize for the inconvenience. It seems like when the script run it produces an error as "Unable to locate package nginx" while practicing the exercise. Based on my understanding of the issue, you're practicing the following Learning Path exercise.

    Unit: 3 of 14 Exercise - Create an Azure Virtual Machine

    I have tried several times to reproduce the issue, and the documented steps works fine for me.

    Kindly take a look the similar discussion thread (by TP) , copying the summarized steps:

    https://learn.microsoft.com/en-us/answers/questions/1160875/broken-exercise-create-an-azure-virtual-machine

    1. Activate new sandbox and create the VM as mentioned in the Exercise (step1 at Create a Linux VM and install Nginx)
    2. After step 1, please make a note of Public IP address that was assigned to VM.
    3. Before moving into step2, connect to newly created VM using ssh command in cloud shell. Please run the below command to connect VM. ssh azureuser@<VM public ip address>
    4. system asks you to prompt to Yes/No. Enter Yes.
    5. Please run the below commands one after another (in cloud shell).
    • sudo apt-get update
    • sudo apt-get install -y nginx
    • echo "<html><body><h2>Welcome to Azure! My name is $(hostname).</h2></body></html>" | sudo tee -a /var/www/html/index.html
    • exit 

    After completed the step 5, Continue your module from step2 of Task 1: Create a Linux virtual machine and install Nginx at module 3 of 14.

    If the issue persists, please let us know we will help you further.

    3 people found this answer helpful.

  2. Ethan Clarke 0 Reputation points
    2023-08-24T16:44:23.01+00:00

    Here's the packet loss to the VMAzure 2