Virtual Network - Subnet Child Resource Remediation#1112
Conversation
|
Quote from issue: Hey @ahmadabdalla, we should definitely not roll back 1:1 as I removed it one purpose due to an issue that was caused by keeping it (most notably e.g. that the original implementation would clash with ALZ policies). I'd suggest we either find a way to reference 'existing' subnets and pass them in (e.g. with an existing reference if that doesn't throw an exception if empty), or we must duplicate the child resource's property (which would be the worst case scenario). |
|
Totally agree with not rolling back. Hence it's a draft to get the module working so we can iterate. Pending discussion |
|
After reading up on it and experiencing the same behavior with Security Rules for NSG we should probably afterall duplicate all properties. I makes sense what the PG says to 'why' it is implemented in the way it is (i.e. enable removal of entries) - it's just very bad news for us & unfortunately not exactly a consistent practice across Azure resources. |
|
Route tables from my experience has a similar problem for the routes property. If they're set outside of the route table object, they'll get cleared up first. This caused an issue for a customer who had an AKS resource that manages its own routes, and when the pipeline ran, ARM deleted the AKS routes and only created the ones in code. AKS does recover its routes but that's a service disruption. So it's not as "incremental" as we want on these resources |
….com/Azure/ResourceModules into users/ahmad_bugFix_vnetSubnetRestore
Unit Test Results 1 files ± 0 1 suites ±0 43s ⏱️ +25s Results for commit 9d2c435. ± Comparison against base commit 0d34485. This pull request removes 6 and adds 8 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Change
This PR is intended to close #1111 where the virtual network module fails when the vnet contains existing azure workloads.
Solution:
Notes:
Testing
Dependency Pipeline (Fork)

Type of Change
Checklist