Skip to content

Allow parent resources to be redeployed while leaving their child resources alone #6755

Open
@fschmied

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions