Asking for Password

Manikandan R 0 Reputation points

Hi Team,
When i am try to execute the below command system asking for Password, can you please help me ?

sudo apt-get install -y nginx-core

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.
808 questions
{count} votes

2 answers

Sort by: Most helpful
  1. anand 220 Reputation points

    Hi Manikandan R,

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

    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>


    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.


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

    Added additionally reference thread link:

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. Najam ul Saqib 100 Reputation points

    Since you're executing sudo than it will ask for administrator password. What are you trying to accomplish here?

    0 comments No comments