1
votes

Is it possible to use the dependsOn element with resources in a linked template? Or other methods to force linked template resources to deploy before a resource in the main template?

1

1 Answers

1
votes

No, not possible - you need to set the dependsOn / dependency on the nested deployment resource itself, e.g.

"dependsOn": [ "[resourceId('Microsoft.Resources/deployments', 'myLinkedDeploymentName')]" ]