Skip to main content

InUseSubnetCannotBeDeleted: The subnet is still in use

Azure tried to delete a subnet that is still in use. This can happen during an update if omitting an existing subnet makes Azure treat it as a deletion.

What to check​

  1. Compare the requested virtual network configuration with the existing one. Include the subnets and unchanged values you intend to keep.
  2. If deletion is intentional, identify the resources still attached to the subnet and plan any moves with their owners before retrying.

Official reference​