{"record":{"id":"c135580ce22e1524","repo":"kubernetes/kops","slug":"listing-application-security-groups-w","errorCode":null,"errorMessage":"listing application security groups: %w","messagePattern":"listing application security groups: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go","lineNumber":68,"sourceCode":"\t}\n\treturn &asg.ApplicationSecurityGroup, err\n}\n\nfunc (c *ApplicationSecurityGroupsClientImpl) List(ctx context.Context, resourceGroupName string) ([]*network.ApplicationSecurityGroup, error) {\n\tif resourceGroupName == \"\" {\n\t\treturn nil, nil\n\t}\n\n\tvar l []*network.ApplicationSecurityGroup\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 application security groups: %w\", err)\n\t\t}\n\t\tl = append(l, resp.Value...)\n\t}\n\treturn l, nil\n}\n\nfunc (c *ApplicationSecurityGroupsClientImpl) Delete(ctx context.Context, resourceGroupName, applicationSecurityGroupName string) error {\n\tfuture, err := c.c.BeginDelete(ctx, resourceGroupName, applicationSecurityGroupName, nil)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"deleting application security group: %w\", err)\n\t}\n\tif _, err = future.PollUntilDone(ctx, nil); err != nil {\n\t\treturn fmt.Errorf(\"waiting for application security group deletion completion: %w\", err)\n\t}\n\treturn nil\n}\n\nfunc newApplicationSecurityGroupsClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*ApplicationSecurityGroupsClientImpl, error) {","sourceCodeStart":50,"sourceCodeEnd":86,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go#L50-L86","documentation":"Listing application security groups via the ARM pager failed with an error other than ResourceGroupNotFound (which is already treated as an empty list). Fires on authorization failures, throttling, or transient ARM errors.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go:68 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the service principal has permission to list application security groups in the resource group","Retry after transient ARM/throttling errors","Check the wrapped ResponseError code for details"],"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"}