Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-900 All Questions

View all questions & answers for the AZ-900 exam

Exam AZ-900 topic 1 question 186 discussion

Actual exam question from Microsoft's AZ-900
Question #: 186
Topic #: 1
[All AZ-900 Questions]

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 a computer that runs Windows 10, install Azure CLI. From a command prompt, sign in to Azure and then run the command.
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Maivicloud
Highly Voted 3 years, 8 months ago
The answer should ne YES. Because Azure CLI need to log in with the command az login. The solution answer "No" is the wrong answer. https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&tabs=azure-cli
upvoted 104 times
...
woodmanhu
Highly Voted 3 years, 8 months ago
The answer should be "Yes" as the question states to log in Azure FROM command prompt instead of Run Azure CLI command FROM Azure after you log into Azure portal on the website.
upvoted 29 times
gabrisiq
2 years, 3 months ago
No. In the end, he's quoting some Command Prompt, not the Azure CLI. A better interpretation of the solution needs to be made.
upvoted 1 times
...
...
126e81f
Most Recent 1 month, 3 weeks ago
Yes, you can use Azure CLI with the Windows Command Prompt (cmd). Here’s a brief guide to get you started: Install Azure CLI: Download the Azure CLI installer for Windows from the official Azure website. Run the installer and follow the prompts. Verify Installation: Open Command Prompt (cmd). Type az --version and press Enter. This command should display the installed version of Azure CLI and verify that it's correctly installed. Log In: To log in to your Azure account, type az login in the Command Prompt and press Enter. This will open a browser window for you to authenticate. Use Azure CLI Commands: Once logged in, you can use various Azure CLI commands. For example, az group list will list your resource groups. If you run into any issues or need specific commands, feel free to ask!
upvoted 1 times
...
CVGCP
2 months, 3 weeks ago
The given command It's a CLI command for creating VM. So the correct answer is "Yes". There are variations of this question which suggest to use PowerShell, which is not the right option and answer will be No for those questions. It's mentioned in the statement that sing-in to Azure has already happened therefore it's not required to include login details in the CLI command.
upvoted 1 times
...
thej_raaaaas
5 months ago
Selected Answer: B
the answer is "NO". when you run the command, it will generate "vm admin user" error. reason is the command does not mention a username and password.
upvoted 3 times
...
Yomzie
6 months, 3 weeks ago
I don't know what MS is trying to achieve giving an incomplete script, because in reality, this command: az vm create --resource-group RG1 --name VM1 --image UbuntuLTS ...is not sufficient to create a VM from the Command Prompt. It gives a "VM Admin User Error" without specifying a user. To make it work, you have to edit the script like this: az vm create --resource-group RG1 --name VM1 --image UbuntuLTS --username BGates --password Password12345
upvoted 1 times
...
Novia
11 months, 2 weeks ago
Selected Answer: B
The question mentioned he SELECTED powershell for this goal. you can't run bash command in powershell. therefore the answer should NO
upvoted 2 times
...
alphilla
11 months, 3 weeks ago
Guys these questions are tricky but answer is simple, once you have Azure Cli Installed you can run the commands from powershell or cdm, it will work the same script. "The Azure Command-Line Interface (CLI) is a cross-platform command-line tool that can be installed locally on Windows computers. You can use the Azure CLI for Windows to connect to Azure and execute administrative commands on Azure resources. The Azure CLI for Windows can also be used from a browser through the Azure Cloud Shell or run from inside a Docker container. For Windows, the Azure CLI is installed via a MSI, which gives you access to the CLI through the Windows Command Prompt (CMD) or PowerShell. When installing for Windows Subsystem for Linux (WSL), packages are available for your Linux distribution. "
upvoted 2 times
...
Frns
1 year, 4 months ago
The Azure Command-Line Interface (CLI) is a cross-platform command-line tool that can be installed locally on Windows computers. You can use the Azure CLI for Windows to connect to Azure and execute administrative commands on Azure resources. The Azure CLI for Windows can also be used from a browser through the Azure Cloud Shell or run from inside a Docker container. For Windows, the Azure CLI is installed via a MSI, which gives you access to the CLI through the Windows Command Prompt (CMD) or PowerShell. When installing for Windows Subsystem for Linux (WSL), packages are available for your Linux distribution. https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&tabs=azure-cli
upvoted 2 times
...
Marcal
1 year, 5 months ago
Yes, this solution meets the goal. By installing the Azure CLI on a computer that runs Windows 10, signing in to Azure from a command prompt, and then running the command, you can create VM1 in Subscription1 . The correct answer is A. Yes
upvoted 2 times
...
Rosseyyy
1 year, 8 months ago
The question said "Sign in", and signing needs user name and password after that you can run the command, so it's yes.
upvoted 2 times
...
RougePotatoe
1 year, 8 months ago
Selected Answer: B
Tested it. Through CLI it throws an error saying the username needs to be within criteria and will not deploy. It will successfully deploy if you add a username parameter. This error also appear when deploying with powershell but it will go through regardless.
upvoted 2 times
RougePotatoe
1 year, 8 months ago
When I referred to CLI I meant CMD.
upvoted 1 times
...
...
jmandc03
1 year, 9 months ago
Selected Answer: B
tested on my windows computer with azure CLI, after logging in with azure, it gave me a VM admin user error (there was none specified in the command) after adding a username and password parameters the command executed successfully, overall the command alone was not enough so I chose B
upvoted 2 times
...
kg907
1 year, 9 months ago
Selected Answer: A
The answer should ne YES
upvoted 1 times
...
0spn0
1 year, 11 months ago
I would say No. The command can be run from PowerShell or the command prompt if you have the Azure CLI installed. However, it must be run on the Windows 10 computer, not in Azure. ref: https://pupuweb.com/microsoft-azure-fundamentals-az900-actual-exam-question-answer-dumps/5/
upvoted 1 times
...
TonyghostR05
2 years ago
When you log in to the azure, it will work
upvoted 2 times
...
Ch0wseth
2 years, 1 month ago
Selected Answer: A
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&tabs=azure-cli
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...