Trying to put together an Azure ARM template right now.
However, it seems I can create links between resources in very different ways.
Here for example: https://learn.microsoft.com/en-us/azure/templates/microsoft.network/2019-04-01/virtualnetworks
I can now specify subnets
for the virtual network
either under .resources
or .properties.subnets
.
Another way is to create another resource Microsoft.Network/virtualNetworks/subnets
on its own and then add a .dependsOn
key to reference the virtual network
resource id.
Which is the way to go by?