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 that command. Solution: On a computer running Windows 10, install the Azure CLI. From a command prompt, sign in to Azure and run the command. Does this meet the goal?
Choose an answer
Tap an option to check your answer.
Correct answer: Yes.
Why this is the answer
This solution meets the goal. Installing the Azure CLI on a Windows 10 computer allows you to execute Azure CLI commands. After signing in to Azure from the command prompt using az login, you can then run the provided az vm create command to provision VM1 within Subscription1. The Azure CLI is a cross-platform command-line tool that enables interaction with Azure resources from various operating systems, including Windows. Incorrect options: No: This is incorrect because the described steps are a valid and common method for creating Azure resources using the Azure CLI from a local machine.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed