Hi Uttam Kumar,
Thank you for reaching out to Microsoft Q & A forum.
Sorry for the inconvenience. To complete this exercise, please follow the steps below as directed:
- Public Address Observation: Upon executing step 1, you should see a public address like this: 40.112.149.7. This confirms that the initial step has been successfully completed.
- Continuation to Step 2: Please proceed by copying the public IP address and executing step 2.
- SSH Command Execution: After completing step 2, enter the following command in your terminal or command prompt:
ssh azureuser@<VM public IP address>
(e.g.,ssh azureuser@40.112.149.7
). When prompted with a message asking if you want to continue connecting, type "yes" (without quotes) and press Enter to proceed. - Cloud Shell Commands: Once connected via SSH, run the following commands sequentially in your 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
After executing the commands, check if the issue persists. If you encounter a password prompt or any difficulties, share the specific error message or behavior. I'm here to assist further and can provide additional troubleshooting or resources if needed.
If you have any further questions or need additional assistance, please feel free to reach out.
We believe this information is helpful to you! If so, please acknowledge it by clicking "Accept Answer" and "Upvote" on the post.