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
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
Community Discussion
No community discussion yet for this question.