Adapter

Azure Blob

Overview

The Azure Blob adapter maps each storagesdk bucket to an Azure container. Snapshots and forks create sibling containers populated by server-side Copy Blob operations. Same-account copies don’t require SAS tokens; the manifest lives at .storagesdk.metadata.json inside each container.

Configuration

import { Storage } from '@storagesdk/core';
import { azure } from '@storagesdk/adapters/azure';

const storage = new Storage({
  adapter: azure({
    bucket: 'agent-runs',
    accountName: process.env.AZURE_ACCOUNT_NAME,
    accountKey: process.env.AZURE_ACCOUNT_KEY,
  }),
});
azure({
  bucket: string;
  accountName: string;
  accountKey: string;
  endpoint?: string;       // override for Azure Gov, China, Azurite, etc.
});

Notes

Compatibility

CapabilitySupport
SnapshotsSibling containers via Copy Blob
ForksSibling containers via Copy Blob
Byte-range reads
Multipart upload
Enforced upload limits
User metadata
Signed URLs