nerdexam
Microsoft

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.

Submitted by brentm· Mar 4, 2026Deploy and manage Azure compute resources

Question

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 resources. Which resource should be added to the dependsOn section for VM1?

Exhibits

AZ-104 question #677 exhibit 1
AZ-104 question #677 exhibit 2

Options

  • AVNET1
  • BNIC1
  • CIP1
  • DNSG1

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    79% (27)
  • C
    12% (4)
  • D
    6% (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.

AVNET1

VNET1 is a dependency for NIC1 (or the subnet NIC1 connects to), but not a direct dependency for VM1 itself.

BNIC1Correct

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.

CIP1

IP1 (Public IP address) is a dependency for NIC1 if a public IP is assigned, but not a direct dependency for VM1 itself.

DNSG1

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.

Full AZ-104 Practice