AZ-303 Exam QuestionsBrowse all questions from this exam

AZ-303 Exam - Question 249


HOTSPOT -

You play to deploy an Azure virtual machine named VM1 by using an Azure Resource Manager template.

You need to complete the template.

What should you include in the template? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Exam AZ-303 Question 249
Show Answer
Correct Answer:
Exam AZ-303 Question 249

Within your template, the dependsOn element enables you to define one resource as a dependent on one or more resources. Its value can be a comma- separated list of resource names.

Box 1: 'Microsoft.Network/networkInterfaces'

This resource is a virtual machine. It depends on two other resources:

Microsoft.Storage/storageAccounts

Microsoft.Network/networkInterfaces

Box 2: 'Microsoft.Network/virtualNetworks/'

The dependsOn element enables you to define one resource as a dependent on one or more resources. The resource depends on two other resources:

Microsoft.Network/publicIPAddresses

Microsoft.Network/virtualNetworks

Exam AZ-303 Question 249

References:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-tutorial-create-templates-with-dependent-resources

Discussion

12 comments
Sign in to comment
Kraviecc
Jan 16, 2021

Correct

JasonHe
Jul 25, 2021

Not Correct. VM depends on NI, Storage, NI should depends on Subnet and Public IP.

ahorva
Jan 7, 2022

Given Answer is correct, to understand the dependency refers to the diagram. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/media/template-tutorial-create-templates-with-dependent-resources/resource-manager-template-dependent-resources-diagram.png

jank
Feb 28, 2021

Given answer is correct. See steps 6 and 7 here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-templates-with-dependent-resources?tabs=CLI#explore-the-template

alexa123456789
Mar 13, 2021

repeated question - 3

nfett
Jun 22, 2021

another repeat.

Pinto
Jul 23, 2021

repeat topic1 q3

JasonHe
Jul 25, 2021

Not Correct. VM depends on NI, Storage, NI should depends on Subnet and Public IP.

Davex
Mar 1, 2021

Exactly

SAMBIT
Jan 31, 2021

Check the next question: It needs both subnet and vnet. The second choice does not look correct to me.

paulxyz90
Mar 27, 2021

I suspect it is because there are other objects below /virtualNetworks/ that the NIC is dependant on - aside form Subnets. According to MS templates the given answer is correct

Kaivan
Dec 9, 2021

Correct answer. Its network interfaces and Virtual network Correct Answer. Its network intera https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template

sealvarezmx
Feb 17, 2021

What about the default subnet? with it, you wouldn't need to specify one

AberdeenAngus
Jan 21, 2022

For the NIC either the vnet or subnet are possible answers but the subnet makes more sense. The resourceid function can accept multiple segments in the resource type https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#resourceid