What is the password for sandbox practice with "sudo apt-get update"

William Wu A 20 Reputation points
2024-02-14T23:18:50.7766667+00:00

My email is <PII removed> I login by option "sign in by google account" and my google email is :
<PII removed> When I learn "Exercise - Configure network access,"

I got [] for az vm list.

I need go back to finish the following, but I do not know what is the password.
1>I tried my <PII removed> password and does not work.
2>I tried my laptop password, and does not work

#!/bin/bash

# Update apt cache.
sudo apt-get update

# Install Nginx.
sudo apt-get install -y nginx-core

# Set the home page.
echo "<html><body><h2>Welcome to Azure! My name is $(hostname).</h2></body></html>" | sudo tee -a /var/www/html/index.html
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.
2,227 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 109.8K Reputation points
    2024-02-14T23:49:33.8966667+00:00

    Hi William,

    You are not supposed to use sudo to complete the exercises in the module you are working in. When you execute the #2 code block of Create an Azure virtual machine exercise by clicking Copy and then right-click Paste into the Cloud Shell window the extension executes the "sudo apt-get update" etc. inside of the VM.

    Please navigate to the Create an Azure virtual machine exercise, Activate sandbox, review permissions, accept, etc. Once you see "Welcome to Azure Cloud Shell" message on right, check the code blocks on the left have resource group name similar to learn-3294a2f5-b8ec-2def-ca62-49e23701bd77.

    If it still says [sandbox resource group name], click Unit 3 of 14 at the top, navigate to one of the other units, then immediately click Unit x of 14 to navigate back to Unit 3 exercise.

    Copy and right-click--Paste the commands of the exercise into Azure Cloud Shell window on right and execute them. Once finished all of the exercise tasks, please navigate to Configure network access exercise and complete the tasks.

    NOTE: You have to complete both exercises in order within the 1 hour sandbox time period. You can't skip the first exercise and go directly to the second one (Configure network access) because the second exercise depends on the first one.

    Please click Accept Answer and upvote if the above was helpful. If something is unclear add a comment below.

    Thanks.

    -TP

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Srinud 3,860 Reputation points Microsoft External Staff
    2024-02-15T02:14:21.9433333+00:00

    Hi William Wu A,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    In additionally provided by @TP answer please follow these troubleshooting steps to resolve the issue:

    1. Activate a new sandbox and create a new 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.

    1. Before moving into step2, connect to the newly created VM using ssh command in cloud shell. Please run the following command to connect VM:

    ssh azureuser@<VM public ip address>

    nginx1

    4. The system gives you to prompt Yes/No. Enter Yes.

    5.  Please run the following 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.

    nginx2

    . Exit 

    After completing 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 reach out to us and we'll be glad to assist you.

    I hope the information provided has been helpful to you! If so, please accept the answer by clicking the "Accept Answer" and "Upvote" on the post.

    We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Q&A.

    Thank you.

    5 people found this answer helpful.

  2. William Wu A 20 Reputation points
    2024-02-15T18:56:09.6466667+00:00

    User's image

    Great appreciate your help. I got this successfully.


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.