Azure CloudShell asking password

Agha Muzahir Hussain 50 Reputation points
2023-07-06T22:45:56.66+00:00

Hi All

I am learning azure fundamentals and in module Describe Azure compute and networking services unit 3 of 14 and and i copy paste below command

#!/bin/bash

# Update apt cache.
sudo apt-get update

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

# 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

and then in AzureCloudshell it is asking for password, i am confused which password it is asking. Can someone help

and did the VM machine is created or no how to check that, please i need urgent help

Thanks

Agha azure unit3-14

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

Accepted answer
  1. Konstantinos Passadis 19,166 Reputation points MVP
    2023-07-06T23:03:44.25+00:00

    Hello @Agha Muzahir Hussain !

    Welcome to Microsoft QnA!

    The password it asks is from the VM you deployed earlier, you set an Admin and a password

    Dont you remember setting a Password for this Virtual Machine ?

    When you execute sudo it asks for password in some commands

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


0 additional answers

Sort by: Most helpful

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.