AZ-104 · Question #650
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…
The correct answer is The 'dependsOn' array in the ARM template should include 'resourceId'. = Yes; The 'imageReference' object in the ARM template should use 'publisher' for 'WindowsServer'. = Yes. 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…
Question
Answer Area
- The 'dependsOn' array in the ARM template should include 'resourceId'.Yes
- The 'imageReference' object in the ARM template should use 'publisher' for 'WindowsServer'.Yes
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.