{"record":{"id":"2c59b351209dc687","repo":"kubernetes/kops","slug":"found-virtual-network-without-properties","errorCode":null,"errorMessage":"found virtual network without properties","messagePattern":"found virtual network without properties","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azuretasks/virtualnetwork.go","lineNumber":75,"sourceCode":"\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar found *network.VirtualNetwork\n\tfor _, v := range l {\n\t\tif *v.Name == *n.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 virtual network without ID\")\n\t}\n\tif found.Properties == nil {\n\t\treturn nil, fmt.Errorf(\"found virtual network without properties\")\n\t}\n\tif found.Properties.ProvisioningState != nil && *found.Properties.ProvisioningState == network.ProvisioningStateFailed {\n\t\tklog.Warningf(\"found virtual network %q in failed provisioning state\", *n.Name)\n\t\treturn nil, nil\n\t}\n\tif found.Properties.AddressSpace == nil {\n\t\treturn nil, fmt.Errorf(\"found virtual network without address space\")\n\t}\n\n\taddrPrefixes := found.Properties.AddressSpace.AddressPrefixes\n\tif len(addrPrefixes) != 1 {\n\t\treturn nil, fmt.Errorf(\"expecting exactly 1 address prefix for %q, found %d: %+v\", *n.Name, len(addrPrefixes), addrPrefixes)\n\t}\n\treturn &VirtualNetwork{\n\t\tName:      n.Name,\n\t\tLifecycle: n.Lifecycle,\n\t\tShared:    n.Shared,\n\t\tResourceGroup: &ResourceGroup{","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azuretasks/virtualnetwork.go#L57-L93","documentation":"Malformed-API-object guard in the Azure VNet Find: the matched virtual network has no Properties block, so provisioning state and address space cannot be inspected. kOps fails rather than guessing the network configuration.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azuretasks/virtualnetwork.go:75 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry in case of a partial API response","Verify the VNet's state in the Azure portal","Recreate the VNet if corrupted"],"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"}