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, 3 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 63 times
...
NaoVaz
Highly Voted 2 years, 7 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 21 times
...
AhmeDMoha
Most Recent 2 weeks, 2 days ago
Selected Answer: B
This is from AI , The correct answer is: B. The New-AzVM cmdlet. 🔍 Here's the breakdown: You're deploying an Ubuntu Server VM in Azure with a custom configuration (like adding a trusted root CA). That points to using PowerShell (not CLI), and more importantly, the current PowerShell module. 🧠 Why not the others? A. New-AzureRmVm ❌ Outdated. The AzureRM module is deprecated and replaced by Az. Avoid using this unless you want to time-travel back to 2018. C. Create-AzVM ❌ Doesn’t exist. Not a real cmdlet. You might be thinking of New-AzVM, which is the valid one. D. az vm create ✅ Technically valid, but that’s Azure CLI, not PowerShell. If you're going for scripting in Bash or Cloud Shell, sure. But you mentioned custom deployment—PowerShell gives you more control for that, especially for complex provisioning scripts.
upvoted 1 times
...
Makaziwe
3 weeks ago
Selected Answer: A
You can configure the existing usage of model from "per authentication" to per enable user" vi the Azure portal
upvoted 1 times
...
Makaziwe
3 weeks ago
Selected Answer: D
This option enable you to run scripts during employment to configure the VM including the adding trusted CAs
upvoted 1 times
...
Makaziwe
3 weeks ago
Selected Answer: D
The az vm create command. you need to create an Ubuntu Linux VM using a cloud-init script for configuration.
upvoted 1 times
...
OsamaQwsmi
1 month, 2 weeks ago
Selected Answer: D
Create the virtual machine To create a VM in this resource group, use the vm create command.
upvoted 1 times
...
bacana
1 month, 4 weeks ago
Selected Answer: D
Others option don't have may options like use sshkey or imprt certificate from vault.
upvoted 1 times
...
compiler_765001
2 months, 1 week ago
Selected Answer: D
In my opinion the correct option is D) "The az vm create command".
upvoted 1 times
...
[Removed]
2 months, 3 weeks ago
Selected Answer: D
This command is part of the Azure CLI, and it allows for more extensive customization options, including the ability to specify custom scripts for post-deployment configuration, such as adding a trusted root certification authority (CA).
upvoted 1 times
...
victorio_27
2 months, 3 weeks 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
3 months, 3 weeks 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
5 months 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
3 months, 1 week ago
The documentation doesn't mention adding a particular trusted root certification authority (CA)
upvoted 2 times
...
...
smeag
6 months, 2 weeks ago
yep D!
upvoted 1 times
...
asuarez
7 months, 1 week 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
7 months, 2 weeks ago
Selected Answer: D
Defenitly D
upvoted 1 times
...
Davidsv
8 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 3 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