Reputation: 1566
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?
Upvotes: 1
Views: 544
Reputation: 8717
No, not possible - you need to set the dependsOn / dependency on the nested deployment resource itself, e.g.
"dependsOn": [ "[resourceId('Microsoft.Resources/deployments', 'myLinkedDeploymentName')]" ]
Upvotes: 1