Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft Certified: Azure Administrator Associate · Microsoft
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
az vm create \ --name myVM \ --image UbuntuLTS \ --custom-data cloud-init.txt
Answer: D The az vm create command A. New-AzureRmVm → Old/deprecated PowerShell cmdlet (AzureRM module). No longer recommended. B. New-AzVM → Current PowerShell cmdlet from the Az module, but it doesn’t directly support cloud-init. You would need extensions or custom scripts. C. Create-AzVM → No such cmdlet exists. D. az vm create → Correct. Supports --custom-data to pass a cloud-init configuration for Ubuntu Server, perfect for installing a trusted CA. Example (Azure CLI with cloud-init): az vm create \ --resource-group RG1 \ --name MyUbuntuVM \ --image UbuntuLTS \ --admin-username azureuser \ --generate-ssh-keys \ --custom-data cloud-init.txt
AI said New-AzVM can create a VM but does not natively support adding a trusted root CA during creation. "New-AzVM can create a VM but does not natively support adding a trusted root CA during creation."