Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
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?
Click on the arrows to vote for the correct answer
A. B.A
The command can be run in the Azure Cloud Shell.
The Azure Cloud Shell is a free interactive shell. It has common Azure tools preinstalled and configured to use with your account.
To open the Cloud Shell, just select Try it from the upper right corner of a code block. You can also launch Cloud Shell in a separate browser tab by going to https://shell.azure.com/bash.
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-cliYes, the solution meets the goal of creating a virtual machine named VM1 in Subscription1 using the command "az vm create --resource-group RG1 --name VM1 --image UbuntuLTS --generate-ssh-keys."
The solution suggests launching Azure Cloud Shell from the Azure portal and selecting Bash, which provides a command-line interface for interacting with Azure resources. Once in the Cloud Shell, the user can run the provided command to create the virtual machine.
Using the Azure Cloud Shell eliminates the need to install any software or tools on the local machine, as the Cloud Shell comes with pre-installed tools such as the Azure CLI (Command-Line Interface). The user can also access the Cloud Shell from anywhere with an internet connection and a browser, making it a convenient way to manage Azure resources.
Additionally, the provided command includes the necessary parameters to create a virtual machine in the specified resource group, using the UbuntuLTS image, and generating SSH keys for secure communication with the VM.
Therefore, the solution is a valid way to achieve the goal of creating a virtual machine named VM1 in Subscription1 using the provided command.