{"record":{"id":"f9f915e233fcb19d","repo":"kubernetes/kops","slug":"listing-storage-accounts-w","errorCode":null,"errorMessage":"listing storage accounts: %w","messagePattern":"listing storage accounts: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/storageaccount.go","lineNumber":44,"sourceCode":"\n// StorageAccountsClient is a client for managing Network Interfaces.\ntype StorageAccountsClient interface {\n\tList(ctx context.Context) ([]*armstorage.Account, error)\n}\n\ntype storageAccountsClientImpl struct {\n\tc *armstorage.AccountsClient\n}\n\nvar _ StorageAccountsClient = (*storageAccountsClientImpl)(nil)\n\nfunc (c *storageAccountsClientImpl) List(ctx context.Context) ([]*armstorage.Account, error) {\n\tvar l []*armstorage.Account\n\tpager := c.c.NewListPager(nil)\n\tfor pager.More() {\n\t\tresp, err := pager.NextPage(ctx)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"listing storage accounts: %w\", err)\n\t\t}\n\t\tl = append(l, resp.Value...)\n\t}\n\treturn l, nil\n}\n\nfunc newStorageAccountsClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*storageAccountsClientImpl, error) {\n\tc, err := armstorage.NewAccountsClient(subscriptionID, cred, nil)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"creating storage accounts client: %w\", err)\n\t}\n\treturn &storageAccountsClientImpl{\n\t\tc: c,\n\t}, nil\n}\n","sourceCodeStart":26,"sourceCodeEnd":60,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/storageaccount.go#L26-L60","documentation":"Listing storage accounts across the subscription via the ARM pager failed; fires on authorization failures (the list is subscription-wide), throttling, or transient ARM errors.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/storageaccount.go:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the credential can list storage accounts in the subscription","Retry after transient ARM/throttling errors"],"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"}