Yituo
Yituo

Reputation: 1566

Azure Arm template dependson with linked template

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

Answers (1)

bmoore-msft
bmoore-msft

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

Related Questions