{"record":{"id":"a557fda649471391","repo":"kubernetes/kops","slug":"waiting-for-application-security-group-create-upda","errorCode":null,"errorMessage":"waiting for application security group create/update completion: %w","messagePattern":"waiting for application security group create/update completion: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go","lineNumber":49,"sourceCode":"\tCreateOrUpdate(ctx context.Context, resourceGroupName, applicationSecurityGroupName string, parameters network.ApplicationSecurityGroup) (*network.ApplicationSecurityGroup, error)\n\tList(ctx context.Context, resourceGroupName string) ([]*network.ApplicationSecurityGroup, error)\n\tDelete(ctx context.Context, resourceGroupName, applicationSecurityGroupName string) error\n}\n\ntype ApplicationSecurityGroupsClientImpl struct {\n\tc *network.ApplicationSecurityGroupsClient\n}\n\nvar _ ApplicationSecurityGroupsClient = (*ApplicationSecurityGroupsClientImpl)(nil)\n\nfunc (c *ApplicationSecurityGroupsClientImpl) CreateOrUpdate(ctx context.Context, resourceGroupName, applicationSecurityGroupName string, parameters network.ApplicationSecurityGroup) (*network.ApplicationSecurityGroup, error) {\n\tfuture, err := c.c.BeginCreateOrUpdate(ctx, resourceGroupName, applicationSecurityGroupName, parameters, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating/updating application security group: %w\", err)\n\t}\n\tasg, err := future.PollUntilDone(ctx, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"waiting for application security group create/update completion: %w\", err)\n\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}","sourceCodeStart":31,"sourceCodeEnd":67,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go#L31-L67","documentation":"PollUntilDone failed while waiting for the application security group CreateOrUpdate LRO (long-running operation) to complete; the request was accepted but the operation ended in failure or polling was interrupted.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go:49 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for the ARM provisioning failure reason","Retry the create/update after the underlying issue is fixed"],"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-12T12:17:11.808Z"}