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 3 years, 1 month 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, 5 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
...
victorio_27
Most Recent 2 days, 6 hours ago
Selected Answer: D
Razón por la cual no se eligen las otras opciones: A. New-AzureRmVm: Este cmdlet pertenece al módulo AzureRM, que está obsoleto y reemplazado por Az. B. New-AzVM: Aunque es parte del módulo más reciente Az, es un cmdlet de PowerShell y no es la opción más flexible para configuraciones avanzadas como la personalización de certificados en Linux. C. Create-AzVM: No existe un cmdlet con este nombre en Azure PowerShell.
upvoted 1 times
...
hellz_rellz
1 month ago
Selected Answer: D
If using Azure CLI, the answer is D. If using Azure PowerShell, the answer would be B, but since the question does not specify PowerShell, D is the most fitting choice.
upvoted 1 times
...
Pnidoni
2 months, 1 week ago
Selected Answer: B
correct Answer is B New-AzVm ` -ResourceGroupName 'myResourceGroup' ` -Name 'myVM' ` -Location 'East US' ` -image Debian11 ` -size Standard_B2s ` -PublicIpAddressName myPubIP ` -OpenPorts 80 ` -GenerateSshKey ` -SshKeyName mySSHKey https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-powershell
upvoted 2 times
JustAnotherDBA
2 weeks, 4 days ago
The documentation doesn't mention adding a particular trusted root certification authority (CA)
upvoted 1 times
...
...
mdmbp
3 months, 3 weeks 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
3 months, 3 weeks ago
yep D!
upvoted 1 times
...
asuarez
4 months, 2 weeks 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 2 times
...
Darkfire
4 months, 3 weeks ago
Selected Answer: D
Defenitly D
upvoted 1 times
...
Davidsv
5 months, 2 weeks 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
6 months ago
New-AzVM = Powershell az vm create = Bash
upvoted 3 times
...
reneze
6 months, 1 week ago
Selected Answer: D
its explained in the link provided to the solution.
upvoted 2 times
...
santijames07
7 months ago
Answer: D Create a VM Use the az vm create command to create a new virtual machine running Ubuntu.
upvoted 2 times
...
tsummey
8 months 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
9 months, 1 week 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
9 months, 2 weeks 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
9 months, 3 weeks ago
ans is D
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago