I'm not sure if this is possible, but what I'm trying to do is create a virtual network from one virtualNetwork.main.bicep file and then create a subnet from another subnet.main.bicep within the virtual network. Now I can do this, but the problem I have is if I rerun the virtual network virtualNetwork.main.bicep it will remove any subnets that have been created by the subnet.main.bicep file
I know I can just add all subnets to the virtualNetwork.main.bicep but the idea is that I can hand over the creation of subnets to other people whilst maintaining a global networking configuration.
So is there any way that I can only stop the virtual network file from deleting what's already there?
Hope this makes sense.
Cheers