DependsOn functionality
It should be possible to declare multiple templates in PSArm and relate them by a depends-on relationship, so that templates can compose and be built/deployed in the correct order.
This should be available in both an explicit and implicit form, so that a template can explicitly depend on another, or have a dependency inferred automatically at build time through some other reference mechanism.
@rdtechie please add any extra info here that you'd like to see in this mechanism
@rjmholt The description looks good to me. I'm not sure however if you want to go down the rabbit hole of implicit dependencies, as this requires you also to built in some sort of graphing functionality. For the first iteration I would suggest to keep it simple, and make it explicit. If that makes sense?
@rdtechie I think it would be simple enough to do terraform style dependson where, if you reference the property of another object, an implicit DependsOn gets inserted there, though I'm not sure if ARM engine handles if it detects a dependency loop, never tested it e.g. (B depends on A depends on B)