I have a parent ARM Template (eg: myapp.assembly.json) that invokes linked child ARM Templates (web.serverFarm.json, web.site.json, etc.)
Currently I have defined the relationship between linked child templates by putting dependsOn
- in the parent ARM template
- referencing the name of the linked
Microsoft.Resources/deployments
(and not the names of resources created within the linked resource template).
I was expecting:
- any
Microsoft.Resources/deployments
that had adependsOn
defined for anotherMicrosoft.Resources/deployments
would wait till all those resources are created.
What I think I am observing is:
- the first time the ARM template is run, it reports that the deployment fails ...looking for dependencies...
- but continues working...so can't redeploy immediately...
- the second time, the resources are built, and the deployment completes.
It's entirely possible I'm missing a dependsOn
-- although I've really looked and don't think so -- or the dependsOn
is not being honored in the way I would have expected.
Any advice would be appreciated.
Thanks.