diff --git a/lib/core/blob/StorageManager.js b/lib/core/blob/StorageManager.js index 139ebb6..d94e834 100644 --- a/lib/core/blob/StorageManager.js +++ b/lib/core/blob/StorageManager.js @@ -52,7 +52,17 @@ class StorageManager { // No DB has been persisted / initialized yet. this.db.addCollection(StorageTables.Containers); this.db.addCollection(StorageTables.ServiceProperties); - return this.db.saveDatabaseAsync(); + const logsStub = { + metaProps: {}, + entityType: StorageEntityType.Container, + containerName: '$logs', + httpProps: {} + }; + logsStub.httpProps[N.BLOB_PUBLIC_ACCESS] = 'private'; + return this.createContainer(logsStub) + .then(() => { + return this.db.saveDatabaseAsync(); + }); } // This should never happen! console.error(`Failed to initialize database at "${env.azuriteDBPathBlob}"`);