This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
How do you create a dependency between two or more resources?
Create a resources attribute on the parent resource. Add the child resource as a value of the resources attribute you created.
resources
Create a dependencies attribute on the dependent resource. Add the resource you depend on as a value to the dependencies attribute.
dependencies
Add a dependsOn construct on a resource, and add the name or ID of the resource it depends on.
dependsOn
The condition element is used to:
Conditionally set values on a resource's attribute.
Conditionally run shell commands in your ARM template.
Conditionally deploy a resource.
How do you get the current index in a copy iteration?
copy
Refer to the $index field within the copy element.
$index
You use the copyIndex() function.
copyIndex()
There's a currentIndex() function that returns the current index value.
currentIndex()
You must answer all questions before checking your work.
Was this page helpful?