{"record":{"id":"d8e937e3849710c6","repo":"kubernetes/kops","slug":"creating-application-security-groups-client-w","errorCode":null,"errorMessage":"creating application security groups client: %w","messagePattern":"creating application security groups client: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go","lineNumber":89,"sourceCode":"\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) {\n\tc, err := network.NewApplicationSecurityGroupsClient(subscriptionID, cred, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating application security groups client: %w\", err)\n\t}\n\treturn &ApplicationSecurityGroupsClientImpl{\n\t\tc: c,\n\t}, nil\n}\n","sourceCodeStart":71,"sourceCodeEnd":95,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go#L71-L95","documentation":"The Azure SDK constructor network.NewApplicationSecurityGroupsClient returned an error while newAzureCloud was building its client set; typically an invalid subscription ID or nil/malformed credential pipeline.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/applicationsecuritygroup.go:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify AZURE_SUBSCRIPTION_ID and the azidentity credential environment variables are set correctly","Check the wrapped error for the constructor's validation message"],"exampleFix":null,"handlingStrategy":"validation","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"}