Azure Blob
Writes files to a container prefix. It does not create a Synapse table — use Synapse when you want SQL there.
Before you begin
- Storage account name and container.
- An account key or a SAS token. Store it in the environment.
bash
export AZURE_STORAGE_ACCOUNT_KEY="..."Configure
python
from skippr import Config, DataSinkAzureBlob, EnvRef, Pipeline
cfg = Config.discover()
raw = cfg.data_sink(
"raw",
DataSinkAzureBlob(
account_name="acmelanding",
container="skipprd",
account_key=EnvRef("AZURE_STORAGE_ACCOUNT_KEY"),
prefix="events",
),
)
cfg.pipeline("events", Pipeline(data_source=cfg.get_data_source("sample"), data_sink=raw))
cfg.save()bash
skipprd connect data-sink azure_blob \
--pipeline events \
--name raw \
--account-name acmelanding \
--container skipprd \
--account-key '${AZURE_STORAGE_ACCOUNT_KEY}' \
--prefix eventsyaml
data_sinks:
raw:
AzureBlob:
account_name: acmelanding
container: skipprd
account_key: ${AZURE_STORAGE_ACCOUNT_KEY}
prefix: eventsOptions
| Key | Type | Required/Default | Description |
|---|---|---|---|
account_name | string | Required | Storage account |
container | string | Required | Container |
account_key | secret | Not set | Account key as ${ENV} |
sas_token | secret | Not set | SAS token as ${ENV} (use instead of the key) |
prefix | string | Not set | Blob prefix |
format | string | Not set | For pipeline type ingest, set format on this data sink to parquet or jsonl. For pipeline type copy, set format on this data sink to jsonl, csv, or xml. If you omit format on a copy pipeline, the data sink follows the source: json → jsonl, csv → csv, xml → xml. In pipeline type copy, nested objects and arrays in CSV are written as compact JSON strings. When pipeline type is copy, the deadletter sink still writes parquet or jsonl; it does not follow a csv or xml data sink. |
A retry overwrites the same blob.
How data lands
Blobs land at {container}/{prefix}/{namespace}/….
{prefix}isprefix.{namespace}is the source namespace (table or stream name).- Optional partition folders follow the namespace:
p_country=GB/frombatch_partition_fields, andyear=2026/month=10/day=9/frombatch_time_fields(orp_year=…whentime_partition_prefixisp_). - The file name is the batch identity plus the
formatextension, for exampleapply-0001.jsonl. Copy Identity JSONL is gzip (apply-0001.jsonl.gz). CSV and XML copy objects stay.csvand.xml.
Troubleshooting
| Symptom | Fix |
|---|---|
| Authentication failed | Export account_key or sas_token in this shell |
| Container missing | Create it, or grant the key rights to create it |
| 403 on prefix | Narrow SAS to write on that prefix |
