{"record":{"id":"c47769abe5e9359c","repo":"kubernetes/kops","slug":"listing-load-balancers-w","errorCode":null,"errorMessage":"listing load balancers: %w","messagePattern":"listing load balancers: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/loadbalancer.go","lineNumber":70,"sourceCode":"\t}\n\treturn &resp.LoadBalancer, nil\n}\n\nfunc (c *loadBalancersClientImpl) List(ctx context.Context, resourceGroupName string) ([]*network.LoadBalancer, error) {\n\tif resourceGroupName == \"\" {\n\t\treturn nil, nil\n\t}\n\n\tvar l []*network.LoadBalancer\n\tpager := c.c.NewListPager(resourceGroupName, nil)\n\tfor pager.More() {\n\t\tresp, err := pager.NextPage(ctx)\n\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 {","sourceCodeStart":52,"sourceCodeEnd":88,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/loadbalancer.go#L52-L88","documentation":"Listing load balancers via the ARM pager failed with an error other than ResourceGroupNotFound (already treated as empty). Fires on authorization failures, throttling, or transient ARM errors.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:70 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify list permissions on the resource group","Retry after transient ARM/throttling errors","Check the wrapped ResponseError code"],"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"}