{"record":{"id":"56db24c68f788348","repo":"kubernetes/kops","slug":"getting-info-for-s-network-interface-q-w","errorCode":null,"errorMessage":"getting info for %s network interface %q: %w","messagePattern":"getting info for (.+?) network interface %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/verifier.go","lineNumber":180,"sourceCode":"\t\tdesc := fmt.Sprintf(\"VM %q\", vmName)\n\t\tklog.V(2).Infof(\"Azure verifier for VM %q looking up Azure API object\", vmLogID)\n\n\t\tvm, err := a.client.vmsClient.Get(ctx, a.client.resourceGroup, vmName, nil)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"getting info for %s: %w\", desc, err)\n\t\t}\n\t\tif vm.Properties == nil {\n\t\t\treturn nil, fmt.Errorf(\"determining VMID for %s\", desc)\n\t\t}\n\t\tnodeName, igName, err = extractNodeIdentity(data, desc, vm.Properties.VMID, vm.Properties.OSProfile, vm.Tags)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\t// Collect private IP addresses from the VM's network interface.\n\t\tni, err := a.client.nisClient.Get(ctx, a.client.resourceGroup, nodeName, nil)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"getting info for %s network interface %q: %w\", desc, nodeName, err)\n\t\t}\n\t\taddrs, challengeEndpoints, err = privateIPEndpoints(ni.Interface, desc)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\tcase vmssVMResourceType:\n\t\tvmssName := res.Parent.Name\n\t\tvmssIndex := res.Name\n\t\tdesc := fmt.Sprintf(\"VMSS %q VM #%s\", vmssName, vmssIndex)\n\t\tklog.V(2).Infof(\"Azure verifier for VM %q looking up Azure API object\", vmLogID)\n\n\t\tvm, err := a.client.vmssVMsClient.Get(ctx, a.client.resourceGroup, vmssName, vmssIndex, nil)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"getting info for %s: %w\", desc, err)\n\t\t}\n\t\tif vm.Properties == nil {\n\t\t\treturn nil, fmt.Errorf(\"determining VMID for %s\", desc)","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/verifier.go#L162-L198","documentation":"Wraps a failure of the Azure networkInterfaces Get call when resolving the NIC of a standalone VM during bootstrap token verification. Fires when the ARM API returns an error (auth, throttling, wrong resource group, or the NIC was deleted between the VM lookup and the NIC lookup). The %s is the human-readable VM description and %w carries the underlying azuresdk error.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/verifier.go:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the Azure credentials and subscription the verifier runs with (AZURE_* env vars / managed identity)","Confirm the VM and its NIC still exist in the expected resource group","Inspect the wrapped error for the ARM status code (404 vs 403 vs 429) and address accordingly","Retry if the error indicates transient throttling (429) after the rate limit resets"],"exampleFix":null,"handlingStrategy":"try-catch","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-12T07:17:12.445Z"}