Exam: AZ-900: Microsoft Azure Fundamentals 0 Likes

From Azure documentation, you have the following command that creates (AZ-900)

Updated on 07/27/2024

You have an Azure subscription named Subscription1. You sign in to the Azure portal and create a resource group named RG1.
From Azure documentation, you have the following command that creates a virtual machine named VM1.
az vm create --resource-group RG1 --name VM1 --image UbuntuLTS --generate-ssh-keys
You need to create VM1 in Subscription1 by using the command.
Solution: From the Azure portal, launch Azure Cloud Shell and select Bash. Run the command in Cloud Shell.

Does this meet the goal?

A) Yes.
B) No.


Solution

Correct answer: A) Yes.
Here's the explanation:

Azure Cloud Shell:
The Azure Cloud Shell is a browser-based, authenticated, and secure shell environment that you can access directly from the Azure portal.
By launching the Azure Cloud Shell and selecting the Bash environment, you can execute the provided command directly in the cloud-based shell.
Running the Command in Cloud Shell:
The command az vm create --resource-group RG1 --name VM1 --image UbuntuLTS --generate-ssh-keys is an Azure CLI command that creates a virtual machine named VM1 in the resource group RG1 using the Ubuntu LTS image and generating SSH keys.
By running this command in the Azure Cloud Shell, the virtual machine will be created in the Subscription1, as specified in the question.
Therefore, launching the Azure Cloud Shell from the Azure portal and running the provided command in the Bash environment meets the goal of creating the virtual machine named VM1 in the Subscription1.

Category: Azure management and governance

There are no comments yet.

Authentication required

You must log in to post a comment.
Log in to like this solution

Log in

Support us!
Subscribe Now

Cookies Consent

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All" you consent to our use of cookies. Privacy Policy.