{"record":{"id":"df6daa238b31ffa0","repo":"hashicorp/terraform","slug":"populating-details-for-s-v","errorCode":null,"errorMessage":"populating details for %s: %+v","messagePattern":"populating details for (.+?): %\\+v","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/backend/remote-state/azure/api_client.go","lineNumber":113,"sourceCode":"\t\t// Setup the SA client.\n\t\tclient.storageAccountsClient, err = storageaccounts.NewStorageAccountsClientWithBaseURI(config.AuthConfig.Environment.ResourceManager)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"building Storage Accounts client: %+v\", err)\n\t\t}\n\t\tclient.configureClient(client.storageAccountsClient.Client, resourceManagerAuth)\n\n\t\t// Populating the storage account detail\n\t\tstorageAccountId := commonids.NewStorageAccountID(config.SubscriptionID, config.ResourceGroupName, client.storageAccountName)\n\t\tresp, err := client.storageAccountsClient.GetProperties(ctx, storageAccountId, storageaccounts.DefaultGetPropertiesOperationOptions())\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"retrieving %s: %+v\", storageAccountId, err)\n\t\t}\n\t\tif resp.Model == nil {\n\t\t\treturn nil, fmt.Errorf(\"retrieving %s: model was nil\", storageAccountId)\n\t\t}\n\t\tclient.accountDetail, err = populateAccountDetails(storageAccountId, *resp.Model)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"populating details for %s: %+v\", storageAccountId, err)\n\t\t}\n\t}\n\n\treturn &client, nil\n}\n\nfunc (c *Client) getBlobClient(ctx context.Context) (bc *blobs.Client, err error) {\n\tif c.blobsClient != nil {\n\t\treturn c.blobsClient, nil\n\t}\n\n\tdefer func() {\n\t\tif err == nil {\n\t\t\tc.blobsClient = bc\n\t\t}\n\t}()\n\n\tvar baseUri string","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/hashicorp/terraform/blob/c9def3e214014c1188faabfc4a5bde5095139765/internal/backend/remote-state/azure/api_client.go#L95-L131","documentation":"Returned by buildClient when populateAccountDetails fails to extract/populate the storage account details (blob endpoint, key info) from the retrieved storage account model. The %s is the resource ID and %+v is the underlying error from populateAccountDetails.","triggerScenarios":"GetProperties returned a non-nil model, but extracting the account details (e.g. resolving the primary/secondary blob endpoint from the model's properties) fails. Triggered during terraform init client construction when lookup_blob_endpoint is used.","commonSituations":"The storage account has no blob endpoint populated (e.g. a non-standard account type/sku, a misprovisioned account); the model's networkAcl/encryption/endpoint fields are in an unexpected shape; SDK/model version mismatch.","solutions":["Verify the storage account is a standard type with a valid primary blob endpoint in the Azure portal.","Retry in case of a transient API field issue.","Upgrade Terraform so populateAccountDetails uses a current SDK model matching the deployed account properties."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Sanity-check the account has a blob endpoint before relying on lookup_blob_endpoint.\n// (az storage account show -g <rg> -n <acct> --query primaryEndpoints.blob)","typeGuard":null,"tryCatchPattern":"client, err := buildClient(ctx, config)\nif err != nil && strings.Contains(err.Error(), \"populating details\") {\n    // verify account has a valid primary blob endpoint; consider disabling lookup_blob_endpoint\n}","preventionTips":["Verify the storage account is a supported type with a populated primary blob endpoint.","If endpoint lookup is problematic, provide the endpoint explicitly or disable lookup_blob_endpoint.","Keep Terraform current so populateAccountDetails matches deployed account shapes."],"tags":["azure","backend","storage-account","endpoint","sdk","terraform"],"analyzedSha":"c9def3e214014c1188faabfc4a5bde5095139765","analyzedAt":"2026-08-07T15:39:49.278Z","schemaVersion":2},"datasetVersion":"2026-08-07T20:17:04.800Z"}