{"record":{"id":"1f0d3c864f546454","repo":"kubernetes/kops","slug":"found-subnet-without-id","errorCode":null,"errorMessage":"found subnet without ID","messagePattern":"found subnet without ID","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azuretasks/subnet.go","lineNumber":89,"sourceCode":"\t\t\t}\n\t\t} else {\n\t\t\treturn nil, err\n\t\t}\n\t}\n\n\tvar found *network.Subnet\n\tfor _, v := range l {\n\t\tif *v.Name == *s.Name {\n\t\t\tfound = v\n\t\t\tbreak\n\t\t}\n\t}\n\tif found == nil {\n\t\treturn nil, nil\n\t}\n\n\tif found.ID == nil {\n\t\treturn nil, fmt.Errorf(\"found subnet without ID\")\n\t}\n\tif found.Properties == nil {\n\t\treturn nil, fmt.Errorf(\"found subnet without properties\")\n\t}\n\tif found.Properties.ProvisioningState != nil && *found.Properties.ProvisioningState == network.ProvisioningStateFailed {\n\t\tklog.Warningf(\"found subnet %q in failed provisioning state\", *s.Name)\n\t\treturn nil, nil\n\t}\n\n\ts.ID = found.ID\n\n\tfs := &Subnet{\n\t\tName:      s.Name,\n\t\tLifecycle: s.Lifecycle,\n\t\tShared:    s.Shared,\n\t\tResourceGroup: &ResourceGroup{\n\t\t\tName: s.ResourceGroup.Name,\n\t\t},","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azuretasks/subnet.go#L71-L107","documentation":"Malformed-API-object guard in the Azure subnet reconciler: a subnet matching by name was found, but the returned object lacks an ID, so kOps cannot reference or adopt it. Indicates a broken/incomplete API response rather than a user configuration error.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azuretasks/subnet.go:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the operation in case of a transient API anomaly","Inspect the subnet in the Azure portal to confirm it is healthy","Delete and recreate the subnet if it is in a corrupted state"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}