QuestionQ17

VerifiedDeploy and manage Azure compute resources

You have an Azure subscription.

You plan to deploy the resources shown in the following table.

Question Image

You need to create a single Azure Resource Manager (ARM) template that will be used to deploy the resources.

Which resource should be included in the dependsOn section for VM1?

Explanation

In an ARM template, an Azure virtual machine must depend on the network interface that is attached to it, because the VM references that NIC in its networkProfile and cannot be provisioned until the NIC exists. Related resources such as the virtual network, public IP address, and network security group are typically dependencies of the NIC resource rather than direct dependencies of the virtual machine.

Community Discussion

No comments yet. Be the first to start the discussion!