Azure diaries: InUseSubnetCannotBeDeleted

When re-deploying a Bicep template that defines a vnet with subnets, I get the error "InUseSubnetCannotBeDeleted". It seems like ARM is trying to re-create the nested subnets, even though they haven't changed. The solution is to add a redundant reference to all subnets via the "existing" keyword. resource websiteVnet 'Microsoft.Network/virtualNetworks@2021-02-01' = { name: 'vnet${sfx}001' location: … Continue reading Azure diaries: InUseSubnetCannotBeDeleted