AZ-104 · Question #677
You have an Azure subscription. You plan to deploy the resources shown in the following table. You need to create a single Azure Resource Manager (ARM) template that will be used to deploy the…
The correct answer is B. NIC1. A virtual machine directly depends on its network interface card (NIC) for network connectivity, thus NIC1 must be deployed before VM1 in an ARM template.
Question
Exhibits
Options
- AVNET1
- BNIC1
- CIP1
- DNSG1
How the community answered
(34 responses)- A3% (1)
- B79% (27)
- C12% (4)
- D6% (2)
Why each option
A virtual machine directly depends on its network interface card (NIC) for network connectivity, thus NIC1 must be deployed before VM1 in an ARM template.
VNET1 is a dependency for NIC1 (or the subnet NIC1 connects to), but not a direct dependency for VM1 itself.
A virtual machine requires a network interface card (NIC) to connect to a virtual network and communicate; therefore, the NIC must be provisioned before the virtual machine can be successfully deployed.
IP1 (Public IP address) is a dependency for NIC1 if a public IP is assigned, but not a direct dependency for VM1 itself.
NSG1 (Network Security Group) is typically a dependency for NIC1 (or the subnet), but not a direct dependency for VM1 itself.
Concept tested: ARM template resource dependencies for virtual machines
Source: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/create-resource-group-template?tabs=json#dependencies
Community Discussion
No community discussion yet for this question.

