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.
- Topic: AZ-900
- 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 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:
- Activate new sandbox and create the VM as mentioned in the Exercise (step1 at Create a Linux VM and install Nginx)
- After step 1, please make a note of Public IP address that was assigned to VM.
- 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>
- system asks you to prompt to Yes/No. Enter Yes.
- 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.