exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 1 question 5 discussion

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

You are planning to deploy an Ubuntu Server virtual machine to your company's Azure subscription.
You are required to implement a custom deployment that includes adding a particular trusted root certification authority (CA).
Which of the following should you use to create the virtual machine?

  • A. The New-AzureRmVm cmdlet.
  • B. The New-AzVM cmdlet.
  • C. The Create-AzVM cmdlet.
  • D. The az vm create command.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
elishlomo
Highly Voted 2 years, 10 months ago
Selected Answer: D
The az vm create command. you need to create an Ubuntu Linux VM using a cloud-init script for configuration. For example, az vm create -g MyResourceGroup -n MyVm --image debian --custom-data
upvoted 61 times
...
NaoVaz
Highly Voted 2 years, 2 months ago
Selected Answer: D
In my opinion the correct option is D) "The az vm create command". "New-AzureRmVm" is the legacy way to create Vms using Powershell (https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/new-azurermvm?view=azurermps-6.13.0). "New-AzVM" Is the current way to create VMs using Powershell (https://docs.microsoft.com/en-us/powershell/module/az.compute/new-azvm?view=azps-8.3.0). Using Powershell cmdlets I think that it is not currently supported to create a VM passing custom data, like a cloud-init file to accomplish the requested trust for a Custom CA. "Create-AzVM" Does not seem to exist. Using AZ cli or ARM Templates we can accomplish this: https://docs.microsoft.com/en-us/azure/virtual-machines/custom-data
upvoted 19 times
...
mdmbp
Most Recent 1 month, 1 week ago
Selected Answer: D
az vm create \ --resource-group myResourceGroupAutomate \ --name myAutomatedVM \ --image Ubuntu2204 \ --admin-username azureuser \ --generate-ssh-keys \ --custom-data cloud-init.txt
upvoted 1 times
...
smeag
1 month, 2 weeks ago
yep D!
upvoted 1 times
...
asuarez
2 months ago
Selected Answer: D
To implement a custom deployment that includes adding a particular trusted root certification authority (CA) when creating an Ubuntu Server virtual machine in Azure, you should use the az vm create command (Option D). During the VM creation process, the az vm create command allows you to specify custom scripts and configurations, such as adding a trusted root CA. This flexibility makes it suitable for custom deployments.
upvoted 1 times
...
Darkfire
2 months, 1 week ago
Selected Answer: D
Defenitly D
upvoted 1 times
...
Davidsv
3 months, 1 week ago
Selected Answer: D
az vm create \ --resource-group myResourceGroupAutomate \ --name myAutomatedVM \ --image Ubuntu2204 \ --admin-username azureuser \ --generate-ssh-keys \ --custom-data cloud-init.txt This is what we get in this link in answer solution https://learn.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-automate-vm-deployment
upvoted 2 times
...
allinict
3 months, 3 weeks ago
New-AzVM = Powershell az vm create = Bash
upvoted 3 times
...
reneze
3 months, 4 weeks ago
Selected Answer: D
its explained in the link provided to the solution.
upvoted 2 times
...
santijames07
4 months, 2 weeks ago
Answer: D Create a VM Use the az vm create command to create a new virtual machine running Ubuntu.
upvoted 2 times
...
tsummey
5 months, 3 weeks ago
Selected Answer: D
The az vm create command offers a level of customization that the other options don't have including the cloud-init script to customize a Linux VM deployment and add the specific trusted root CA.
upvoted 1 times
...
3c5adce
6 months, 4 weeks ago
In summary: B. The New-AzVM cmdlet is the correct PowerShell command. D. The az vm create command is the correct Azure CLI command. Based on highest voted I'll go with D
upvoted 2 times
...
fabiofranc
7 months, 1 week ago
Create the Virtual Machine the following code: az vm create \ --resource-group MyResourceGroup \ --name MyVM \ --admin-username azureuser \ --image Ubuntu2204
upvoted 1 times
...
mayureshpawashe3036
7 months, 2 weeks ago
ans is D
upvoted 1 times
...
6f80f6c
7 months, 3 weeks ago
Answer is D. Create-AzVM cmdlet not exist !
upvoted 2 times
...
jecampos2
7 months, 3 weeks ago
Selected Answer: D
I don't understand why Exam Topics don't update the correct answer when the explanations confirm the correcrt answer is D.
upvoted 7 times
AlbertKwan
5 months, 2 weeks ago
because they are busy counting bills.
upvoted 1 times
...
...
MCLC2021
8 months, 1 week ago
Correct answer D ( The az vm create command). A/C: the command does not exist. B: the command "New-AzVM cmdlet" will create a new storage account for boot diagnostics if one does not already exist. If you use the Azure CLI to create your VM with the "az vm create" command, you can optionally generate SSH public and private key files using the "--generate-ssh-keys" option. If you use the Azure PowerShell to create your VM with the "New-AzVM" command, you can optionally generate SSH public and private key files using the "GenerateSshKey" option.
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 ...