> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure Blob Storage versions

> Retain versioned Azure blobs as Files.

Bind one versioned Azure Blob Storage container in the public Azure cloud
and a literal prefix. Follow the same mount, source controls, and 1 MiB
File and 24 KiB range limits as the S3 source. Pass the receiver below to the app as `provider`. For protected content, pass the declared label as the binder's last argument and as the app's `data`.
[Object storage mount and controls](https://docs.bijection.com/integrations/native-s3.md).

```ts bijection/app.ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { app, label, secret } from "@bijectionhq/bijection";
import objects, { azureBlobContainer } from "@bijectionhq/app-objects";

const archive = label();
const token = secret();
const container = azureBlobContainer({
  account: "examplearchive",
  container: "incoming",
  prefix: "exports/",
}, { kind: "bearer", secret: token }, archive);

export default app({ archive, token, container, store: objects({ data: archive, provider: container }) });
```

Seal a Microsoft Entra access token for Azure Storage in the `secret()` the
binder takes and rotate it before expiry. Alternatively configure
`kind: "oauth2"` with the Entra tenant's token endpoint, application client
ID, sealed client secret and scope `https://storage.azure.com/.default`.
Give the identity Storage Blob Data Reader access at the container.
[Azure Get Blob authorization](https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob#authorization).

The app enumerates blob versions through the container's marker and skips
entries that lack a version ID. Each range selects the listed version ID,
uses the listed ETag as a precondition, and verifies the returned identity
and range. Use a storage account with Blob versioning enabled. ADLS Gen2
hierarchical namespace accounts have a separate directory mode.
[Azure Blob versioning](https://learn.microsoft.com/en-us/azure/storage/blobs/versioning-overview),
[ADLS Gen2 directory mode](https://docs.bijection.com/integrations/native-adls.md).

The app bundle requires the bundled parser artifact. Configure `source.initialize`
to publish CSV or JSON records alongside retained Files.
[CSV and JSON object records](https://docs.bijection.com/integrations/native-object-records.md).

For protected installs, use a sealed bearer and rotate it before expiry.

For snapshot deletion by absence, select a [versioned inventory](https://docs.bijection.com/integrations/native-object-inventory.md).

## Put an object

Bind `azureBlobWriter({ account, container, prefix }, auth, label)`
and pass it to the objects app as `writer`. Follow the
[object write command](https://docs.bijection.com/integrations/native-s3.md#put-an-object) for the key,
inline payload, contract and evidence API.

The writer uses Put Blob for a block blob. HTTP 201 acknowledges the full
blob write. The ETag and version ID are retained when present. Enable
versioning if a later read must name the original version.
[Provider API](https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.