nerdexam
MicrosoftMicrosoft

AZ-104 · Question #650

AZ-104 Question #650: Real Exam Question with Answer & Explanation

In ARM templates, the 'dependsOn' array uses 'resourceId()' function to reference other resources, ensuring deployment order dependencies are correctly established (e.g., a VM depending on a NIC or storage account). For the 'imageReference' object, 'publisher' is the correct prop

Submitted by weili_xi· Mar 4, 2026Deploy and manage Azure compute resources - specifically authoring and understanding Azure Resource Manager (ARM) templates for VM provisioning, including resource dependencies and image reference configuration.

Question

Hotspot Question You have an Azure subscription. You need to deploy a virtual machine by using an Azure Resource Manager (ARM) template. How should you complete the template? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Explanation

In ARM templates, the 'dependsOn' array uses 'resourceId()' function to reference other resources, ensuring deployment order dependencies are correctly established (e.g., a VM depending on a NIC or storage account). For the 'imageReference' object, 'publisher' is the correct property name used to specify the OS image source, where 'MicrosoftWindowsServer' is the publisher value for Windows Server images - not 'WindowsServer' itself, which is actually the 'offer' value.

Topics

#ARM Templates#Virtual Machine Deployment#Azure IaaS#Infrastructure as Code

Community Discussion

No community discussion yet for this question.

Full AZ-104 PracticeBrowse All AZ-104 Questions