{"record":{"id":"2fff2ab38a958807","repo":"weaviate/weaviate","slug":"azure-storage-account-must-be-set","errorCode":null,"errorMessage":"AZURE_STORAGE_ACCOUNT must be set","messagePattern":"AZURE_STORAGE_ACCOUNT must be set","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/backup-azure/client.go","lineNumber":87,"sourceCode":"\t\t\tif strings.HasPrefix(str, \"BlobEndpoint\") {\n\t\t\t\tblobEndpoint := strings.Split(str, \"=\")\n\t\t\t\tif len(blobEndpoint) > 1 {\n\t\t\t\t\tserviceURL = blobEndpoint[1]\n\t\t\t\t\tif !strings.HasSuffix(serviceURL, \"/\") {\n\t\t\t\t\t\tserviceURL = serviceURL + \"/\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn &azureClient{client: client, config: *config, serviceURL: serviceURL, dataPath: dataPath, logger: logger, nodeID: nodeID}, nil\n\t}\n\n\t// Your account name and key can be obtained from the Azure Portal.\n\taccountName := os.Getenv(\"AZURE_STORAGE_ACCOUNT\")\n\taccountKey := os.Getenv(\"AZURE_STORAGE_KEY\")\n\n\tif accountName == \"\" {\n\t\treturn nil, errors.New(\"AZURE_STORAGE_ACCOUNT must be set\")\n\t}\n\n\t// The service URL for blob endpoints is usually in the form: http(s)://<account>.blob.core.windows.net/\n\tserviceURL := fmt.Sprintf(\"https://%s.blob.core.windows.net/\", accountName)\n\n\tif accountKey != \"\" {\n\t\tcred, err := azblob.NewSharedKeyCredential(accountName, accountKey)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\n\t\tclient, err := azblob.NewClientWithSharedKeyCredential(serviceURL, cred, nil)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\treturn &azureClient{client: client, config: *config, serviceURL: serviceURL, dataPath: dataPath, logger: logger, nodeID: nodeID}, nil\n\t}\n","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/modules/backup-azure/client.go#L69-L105","documentation":"backup-azure module Init: no SAS/connection-string credential path was taken, and the AZURE_STORAGE_ACCOUNT environment variable is empty, so the storage client cannot be constructed. The module fails during startup wiring; AZURE_STORAGE_KEY is checked next and reported separately if also missing.","triggerScenarios":"Thrown at modules/backup-azure/client.go:87 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Export AZURE_STORAGE_ACCOUNT (and AZURE_STORAGE_KEY) before starting Weaviate","Alternatively configure the backup-azure module with a SAS URL or connection string so env credentials are not required"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}