I don't think this is possible. but I'll ask anyway.
I have a network deployment that creates vnet, subnets, and NSGs. I then have a separate deployment that creates an application, the app needs to update an NSG so that traffic is allowed.
But if i re-run the vnet deployment the application-specific changes are removed as they dont exist within the vnet bicep.main.
I know I can write some code that take the NSG values and re-apply after the vnet deployment, but this will create downtime.
I'm pretty sure their isn't a way persist the changes, but thought i'd ask how others do this?