Skip to content
Storage Providers

Azure Blob Storage

Azure REST 2023-11-03 driver supporting SharedKey HMAC-SHA256, SAS tokens/URLs, sovereign clouds, Azurite emulator, and Put Block parallel resume.

The azureblob backend (backend-azureblob) implements Microsoft Azure Blob Storage REST API 2023-11-03 cleanly in Rust without heavy Azure SDK dependencies. It supports SharedKey signing, SAS URLs, sovereign cloud endpoints (such as Azure China), anonymous public containers, and local Azurite testing.

Setup Recipes#

rship auth azureblob az \
  --account myaccount \
  --container backups \
  --access-tier Cool \
  --key "<BASE64_STORAGE_ACCOUNT_KEY>"

rship about az:

Flags Reference (rship auth azureblob)#

FlagDefaultDescription
<REMOTE>—Logical remote name (e.g. az, az-backups)
--accountConditionalStorage account name (optional with --sas-url or --use-emulator)
--containerOptionalDefault blob container name
--prefixEmptyVirtual directory prefix inside the container
--keyNoneBase64 SharedKey secret
--sas-urlNoneSAS query token (?sv=...) or full account SAS URL
--endpointblob.core.windows.netCustom base URL for Azure China, Azure Gov, or mock servers
--access-tierDefaultHot, Cool, Cold, or Archive
--use-emulatorfalseConfigure standard Azurite devstoreaccount1 at 127.0.0.1:10000
--anonymousfalseAccess public containers without credentials

Protocol Internals#

  • Parallel Block Blob resume: Objects <= 16 MiB upload in a single PutBlob; larger blobs upload parallel 8 MiB blocks (256 KiB min to 100 MiB max per block, up to 50,000 blocks per blob). After interruption, GetBlockList inspects uncommitted blocks and skips already-uploaded parts before calling PutBlockList.
  • Integrity & server-side copy: Validates Content-MD5 end-to-end and uses x-ms-copy-source for server-side intra-account copies.
  • Range reads: Full HTTP Range support for rship cat and seekable encrypted vaults (crypt over azureblob).