Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 (?) , you can switch to a simple comment.
Switch to a voting comment New
elishlomo
Highly Voted 2 years, 8 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 60 times
...
NaoVaz
Highly Voted 2 years 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 15 times
...
asuarez
Most Recent 6 days, 2 hours 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
1 week, 4 days ago
Selected Answer: D
Defenitly D
upvoted 1 times
...
Davidsv
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 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 1 times
...
allinict
1 month, 3 weeks ago
New-AzVM = Powershell az vm create = Bash
upvoted 3 times
...
reneze
1 month, 4 weeks ago
Selected Answer: D
its explained in the link provided to the solution.
upvoted 2 times
...
santijames07
2 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
3 months, 2 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
4 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
5 months 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
5 months, 1 week ago
ans is D
upvoted 1 times
...
6f80f6c
5 months, 3 weeks ago
Answer is D. Create-AzVM cmdlet not exist !
upvoted 2 times
...
jecampos2
5 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
3 months, 1 week ago
because they are busy counting bills.
upvoted 1 times
...
...
MCLC2021
6 months 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
...
digix98487
6 months, 3 weeks ago
B: The New-AzVM cmdlet is used to create a new virtual machine (VM) in Azure using Azure PowerShell. This cmdlet allows for the creation of a VM with various custom configurations, including specifying the operating system, hardware resources, networking settings, and additional configurations like trusted root certification authorities. When deploying a custom VM that requires specific configurations such as adding a particular trusted root certification authority (CA), the New-AzVM cmdlet provides the flexibility to include these configurations as part of the deployment process. This allows you to tailor the VM to meet your specific requirements, ensuring that it meets your organization's security and operational needs. Therefore, when you need to implement a custom deployment that includes adding a particular trusted root certification authority (CA), using the New-AzVM cmdlet is the appropriate choice for creating the virtual machine in your company's Azure subscription.
upvoted 1 times
...
Amir1909
7 months, 1 week ago
D is correct
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 ...