Description
Is your feature request related to a problem? Please describe.
Whenever I redeploy a VNET using Azure Bicep, it will clear out all subnets in the VNET that are not explicitly listed in the VNET resource definition. This prevents me from partitioning my resource definitions into logical groups that can be separately deployed (and redeployed), which is a common strategy with infrastructure as code approaches. (For reference, see, e.g., the "stack" patterns from the "Infrastructure as Code" book by Kief Morris.)
There is a similar situation with AKS cluster deployments, which require details about all node pools.
This has also been discussed in #4023 (comment), but I'm creating a new issue because #4023 originally came from a different angle.
I also want to mention #5806 (which I created), which is also from a slightly different perspective, but might show there are different issues that all relate to the higher goal of being able to partition infrastructure definitions into smaller units.
Describe the solution you'd like
I would like to have a way to define a resource in such a way that the Azure Resource Manager will either leave existing child resources alone, if any, or merge them with what I have declared.
In #4023 (comment), an upsert
modifier was mentioned, this would work well.
An alternative would be a merge
keyword as mentioned in #5806.
Activity