QuestionQ128

VerifiedDeploy and manage Azure compute resources

You plan to deploy an Ubuntu Server virtual machine to your company's Azure subscription.

You must implement a custom deployment that includes adding a specific trusted root certification authority (CA).

Which of the following should you use to create the virtual machine?

Explanation

For Ubuntu and other Linux VMs in Azure, custom deployment tasks such as adding a trusted root CA are done at provisioning time by passing a cloud-init configuration as custom data, which cloud-init processes by default. Microsoft Learn documents creating the VM with az vm create --custom-data cloud-init.txt for this purpose. New-AzVMConfig only creates a configurable local virtual machine object; it doesn't create the VM (you pass that object to New-AzVM -VM). New-AzureRmVm belongs to the deprecated AzureRM module, and Create-AzVM doesn't exist: the Az.Compute cmdlet that creates a virtual machine is New-AzVM.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!