{"record":{"id":"f4479db76252c0a8","repo":"kubernetes/kops","slug":"creating-updating-load-balancer-w","errorCode":null,"errorMessage":"creating/updating load balancer: %w","messagePattern":"creating/updating load balancer: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/loadbalancer.go","lineNumber":47,"sourceCode":"\n// LoadBalancersClient is a client for managing load balancers.\ntype LoadBalancersClient interface {\n\tCreateOrUpdate(ctx context.Context, resourceGroupName, loadBalancerName string, parameters network.LoadBalancer) (*network.LoadBalancer, error)\n\tList(ctx context.Context, resourceGroupName string) ([]*network.LoadBalancer, error)\n\tGet(ctx context.Context, resourceGroupName string, loadBalancerName string) (*network.LoadBalancer, error)\n\tDelete(ctx context.Context, resourceGroupName, loadBalancerName string) error\n}\n\ntype loadBalancersClientImpl struct {\n\tc *network.LoadBalancersClient\n}\n\nvar _ LoadBalancersClient = (*loadBalancersClientImpl)(nil)\n\nfunc (c *loadBalancersClientImpl) CreateOrUpdate(ctx context.Context, resourceGroupName, loadBalancerName string, parameters network.LoadBalancer) (*network.LoadBalancer, error) {\n\tfuture, err := c.c.BeginCreateOrUpdate(ctx, resourceGroupName, loadBalancerName, parameters, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating/updating load balancer: %w\", err)\n\t}\n\tresp, err := future.PollUntilDone(ctx, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"waiting for load balancer create/update: %w\", err)\n\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 {","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/loadbalancer.go#L29-L65","documentation":"BeginCreateOrUpdate for the Azure load balancer failed to start the LRO; fires on ARM validation errors (bad frontend/subnet references), quota, or authorization failures for the named load balancer.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped ResponseError code and fix the referenced subnets/IPs/parameters","Verify Network Contributor permissions and quota","Retry after transient ARM 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"}