Exercise - Create an Azure virtual machine

Arturo Zamudio 0 Reputation points
2023-11-04T22:28:35.6366667+00:00

i tried to install nginx but every time that i run the command (apt-get update) it doesn't work

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,185 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AmaranS 3,150 Reputation points Microsoft Vendor
    2023-11-05T03:30:41.36+00:00

    Hi @Arturo Zamudio

    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:

    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.

    2 people found this answer helpful.