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

# Azure Blob Storage

> Query files in Azure Blob Storage with your Azure credentials, or anonymously from public containers.

Query data in Azure Blob Storage with the same table functions you use for local files. Chowder reads the source using credentials available to your application.

## URI form

```text theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
az://<account>.blob.core.windows.net/<container>/<path>
az://<container>/<path>
```

The short form takes the account name from `AZURE_STORAGE_ACCOUNT_NAME`. Chowder also recognizes `abfs://`, `abfss://`, `adl://`, and `azure://` URI forms.

## Query a public object

This example reads NYC taxi trips from Microsoft's public Azure Open Datasets account:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    "lpepPickupDatetime",
    "tripDistance",
    "totalAmount"
FROM read_parquet('az://azureopendatastorage.blob.core.windows.net/nyctlc/green/puYear=2019/puMonth=1/*.parquet')
WHERE "tripDistance" > 50
LIMIT 5;
```

No setup is needed. Without Azure credentials, Chowder reads public containers anonymously. See [Authentication](#authentication). The column names are camelCase, so the query quotes them.

## Query an existing object

Replace the uppercase placeholders with a Parquet file you can read. The optional demo setup below creates a matching file.

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    content
FROM read_parquet('az://YOUR_ACCOUNT.blob.core.windows.net/YOUR_CONTAINER/chowder-demo/amazon-reviews.parquet')
WHERE content ILIKE '%battery%'
LIMIT 5;
```

## Authentication

Chowder uses the process's Azure credentials: environment credentials such as an account key, SAS token, or service principal, a sign-in from `az login`, or a managed identity. Keep credentials outside SQL.

* **No credentials found:** Chowder reads the container anonymously. Public objects load. A private container fails with an error that says how to configure credentials.
* **Credentials added later:** when an anonymous read is denied, Chowder checks for credentials again, so you don't need to restart Python after `az login`.
* **A credential source fails:** for example, with an expired `az login` session, the query fails with that error instead of reading anonymously.
* **Forced anonymous access:** set `AZURE_SKIP_SIGNATURE=true` to read anonymously even when credentials exist.

Chowder reads only the byte ranges a reader needs, such as selected Parquet columns or matching MCAP chunks.

## Optional: reproduce the demo

To reproduce the query with the Chowder review fixture, download `demo/amazon-reviews.parquet` using [Local files](https://docs.chowder.ai/reference/sources/local-files.md). Replace every uppercase placeholder with your own storage name, then copy the fixture:

```bash theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
az storage blob upload \
    --account-name YOUR_ACCOUNT \
    --container-name YOUR_CONTAINER \
    --name chowder-demo/amazon-reviews.parquet \
    --file demo/amazon-reviews.parquet \
    --auth-mode login
```


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