my original azure password not working while installing nginx for this learning, please help

Vinodh Rajan 0 Reputation points
2024-02-17T09:03:43.01+00:00

my original azure password not working while installing nginx for this learning, please help

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,283 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mahesh Goud Juvvadi 1,955 Reputation points Microsoft External Staff
    2024-02-17T10:45:55.63+00:00

    Hi Vinodh Rajan,

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

    Based on our understanding you are learning this module Describe Azure compute and networking services.

    Kindly follow below troubleshoots 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.

    3.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>**

    User's image

    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 share the error screenshots 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.


  2. Vinodh Rajan 0 Reputation points
    2024-02-17T12:14:55.94+00:00

    Hi Andir, I think we no need to execute the "sudo apt-get update" command separately. This previous command does everything needed

    The below steps are just explaining us what the above big command does .

    1. Runs apt-get update to download the latest package information from the internet. This step helps ensure that the next command can locate the latest version of the Nginx package.
    2. Installs Nginx.
    3. Sets the home page, /var/www/html/index.html, to print a welcome message that includes your VM's host name.

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.