{"record":{"id":"6084c94ba6dd4750","repo":"kubernetes/kops","slug":"getting-load-balancer-w","errorCode":null,"errorMessage":"getting load balancer: %w","messagePattern":"getting load balancer: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/loadbalancer.go","lineNumber":83,"sourceCode":"\t\tif err != nil {\n\t\t\tvar respErr *azcore.ResponseError\n\t\t\tif errors.As(err, &respErr) && respErr.ErrorCode == \"ResourceGroupNotFound\" {\n\t\t\t\treturn nil, nil\n\t\t\t}\n\t\t\treturn nil, fmt.Errorf(\"listing load balancers: %w\", err)\n\t\t}\n\t\tl = append(l, resp.Value...)\n\t}\n\treturn l, nil\n}\n\nfunc (c *loadBalancersClientImpl) Get(ctx context.Context, resourceGroupName string, loadBalancerName string) (*network.LoadBalancer, error) {\n\topts := &network.LoadBalancersClientGetOptions{\n\t\tExpand: to.Ptr(\"frontendIpConfigurations/publicIpAddress\"),\n\t}\n\tresp, err := c.c.Get(ctx, resourceGroupName, loadBalancerName, opts)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"getting load balancer: %w\", err)\n\t}\n\treturn &resp.LoadBalancer, nil\n}\n\nfunc (c *loadBalancersClientImpl) Delete(ctx context.Context, resourceGroupName, loadBalancerName string) error {\n\tfuture, err := c.c.BeginDelete(ctx, resourceGroupName, loadBalancerName, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"deleting load balancer: %w\", err)\n\t}\n\tif _, err := future.PollUntilDone(ctx, nil); err != nil {\n\t\treturn fmt.Errorf(\"waiting for load balancer deletion completion: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc newLoadBalancersClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*loadBalancersClientImpl, error) {\n\tc, err := network.NewLoadBalancersClient(subscriptionID, cred, nil)\n\tif err != nil {","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/loadbalancer.go#L65-L101","documentation":"The ARM Get call for a specific load balancer (with frontend IP expansion) failed; fires when the load balancer does not exist, or on authorization/transient ARM errors.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for NotFound and confirm the load balancer name","Verify read permissions in the resource group","Retry after transient failures"],"exampleFix":null,"handlingStrategy":"retry","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"}