
Answer-first summary for fast verification
Answer: Yes
The solution meets the goal because Azure CLI can be installed on Windows 10 and used from the command prompt (CMD) to sign in to Azure via 'az login' and execute the VM creation command. The community discussion strongly supports this, with the highest upvoted comment (105 upvotes) and multiple others citing official Microsoft documentation confirming that Azure CLI works in Windows Command Prompt. While some comments note that the specific command may require additional parameters (e.g., username/password) to avoid errors, the core process—installing Azure CLI, signing in from CMD, and running the command—is valid and aligns with Azure fundamentals. The confusion in some comments stems from misinterpreting 'sign in to Azure' as requiring the Azure portal, but 'az login' handles authentication directly from the command line.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have an Azure subscription named Subscription1. You create a resource group named RG1 in the Azure portal.
You have the following command from Azure documentation to create 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 using this command.
Solution: Install the Azure CLI on a computer running Windows 10. From a command prompt, sign in to Azure and then run the command.
Does this solution meet the goal?
A
Yes
B
No
No comments yet.