# azure_blob_storage

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

---
title: azure_blob_storage
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.117.0
latest-redpanda-tag: v26.2.6
docname: connect/components/inputs/azure_blob_storage
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: connect/components/inputs/azure_blob_storage.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/develop/pages/connect/components/inputs/azure_blob_storage.adoc
description: Downloads objects within an Azure Blob Storage container, optionally filtered by a prefix.
page-git-created-date: "2024-09-09"
page-git-modified-date: "2026-10-19"
page-generated-sources:
  - include: connect:components:partial$descriptions/inputs/azure_blob_storage.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

<!-- Source: https://docs.redpanda.com/cloud-data-platform/develop/connect/components/inputs/azure_blob_storage.md -->

Downloads objects within an Azure Blob Storage container, optionally filtered by a prefix.

Supports multiple authentication methods but only one of the following is required:

-   `storage_connection_string`

-   `storage_account` and `storage_access_key`

-   `storage_account` and `storage_sas_token`

-   `storage_account` to access via [DefaultAzureCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential)


If multiple are set then the `storage_connection_string` is given priority.

If the `storage_connection_string` does not contain the `AccountName` parameter, please specify it in the `storage_account` field.

## [](#download-large-files)Download large files

When downloading large files it’s often necessary to process it in streamed parts in order to avoid loading the entire file in memory at a given time. In order to do this a [`scanner`](#scanner) can be specified that determines how to break the input into smaller individual messages.

## [](#stream-new-files)Stream new files

By default this input will consume all files found within the target container and will then gracefully terminate. This is referred to as a "batch" mode of operation. However, it’s possible to instead configure a container as [an Event Grid source](https://learn.microsoft.com/en-gb/azure/event-grid/event-schema-blob-storage) and then use this as a [`targets_input`](#targets_input), in which case new files are consumed as they’re uploaded and Redpanda Connect will continue listening for and downloading files as they arrive. This is referred to as a "streamed" mode of operation.

## [](#metadata)Metadata

This input adds the following metadata fields to each message:

-   `blob_storage_key`

-   `blob_storage_container`

-   `blob_storage_last_modified`

-   `blob_storage_last_modified_unix`

-   `blob_storage_content_type`

-   `blob_storage_content_encoding`

-   All user defined metadata


You can access these metadata fields using [function interpolation](https://docs.redpanda.com/cloud-data-platform/develop/connect/configuration/interpolation/#bloblang-queries).

### Common

```yml
input:
  label: ""
  azure_blob_storage:
    storage_account: ""
    storage_access_key: ""
    storage_connection_string: ""
    storage_sas_token: ""
    container: "" # No default (required)
    prefix: ""
    scanner:
      to_the_end: {}
    targets_input: {} # No default (optional)
```

### Advanced

```yml
input:
  label: ""
  azure_blob_storage:
    storage_account: ""
    storage_access_key: ""
    storage_connection_string: ""
    storage_sas_token: ""
    container: "" # No default (required)
    prefix: ""
    scanner:
      to_the_end: {}
    delete_objects: false
    targets_input: {} # No default (optional)
```

## [](#fields)Fields

### [](#container)`container`

The name of the container from which to download blobs.

This field supports [interpolation functions](https://docs.redpanda.com/cloud-data-platform/develop/connect/configuration/interpolation/#bloblang-queries).

**Type**: `string`

### [](#delete_objects)`delete_objects`

Whether to delete downloaded blobs from the container once they are processed.

**Type**: `bool`

**Default**: `false`

### [](#prefix)`prefix`

An optional path prefix, if set only objects with the prefix are consumed.

**Type**: `string`

**Default**: `""`

### [](#scanner)`scanner`

The [scanner](https://docs.redpanda.com/cloud-data-platform/develop/connect/components/scanners/about/) used to split the stream of bytes into individual messages. Scanners are useful for processing large data sources efficiently without holding the entire data set in memory. For example, the `csv` scanner processes individual rows in a CSV file without loading the entire file in memory.

**Type**: `scanner`

**Default**:

```yaml
to_the_end: {}
```

### [](#storage_access_key)`storage_access_key`

The access key for the storage account. Use this field along with `storage_account` for authentication. This field is ignored when the `storage_connection_string` field is populated.

**Type**: `string`

**Default**: `""`

### [](#storage_account)`storage_account`

The storage account to access. This field is ignored when the `storage_connection_string` field is populated, unless the connection string does not contain the `AccountName` parameter.

**Type**: `string`

**Default**: `""`

### [](#storage_connection_string)`storage_connection_string`

The connection string for the storage account. This field is required if `storage_account` is not set.

> 📝 **NOTE**
>
> If the `storage_connection_string` field does not contain the `AccountName` parameter value, specify it in the `storage_account` field.

**Type**: `string`

**Default**: `""`

### [](#storage_sas_token)`storage_sas_token`

The SAS token for the storage account. Use this field along with `storage_account` for authentication. This field is ignored when either the `storage_connection_string` or `storage_access_key` fields are populated.

**Type**: `string`

**Default**: `""`

### [](#targets_input)`targets_input`

> ⚠️ **CAUTION**
>
> This is an experimental field that provides an optional source of download targets, configured as a [regular Redpanda Connect input](https://docs.redpanda.com/cloud-data-platform/develop/connect/components/inputs/about/). Each message yielded by this input should be a single structured object containing a field `name`, which represents the blob to be downloaded.

This requires setting up [Azure Blob Storage as an Event Grid source](https://learn.microsoft.com/en-gb/azure/event-grid/event-schema-blob-storage) and an associated event handler that a Redpanda Connect input can read from. For example, use either one of the following:

-   [Azure Event Hubs](https://learn.microsoft.com/en-gb/azure/event-grid/handler-event-hubs) using the `kafka` input

-   [Namespace topics](https://learn.microsoft.com/en-gb/azure/event-grid/handler-event-grid-namespace-topic) using the `mqtt` input


**Type**: `input`

```yaml
# Examples:
targets_input:
  mqtt:
    topics:
      - some-topic
    urls:
      - example.westeurope-1.ts.eventgrid.azure.net:8883
  processors:
    - unarchive:
        format: json_array
    - mapping: |-
        if this.eventType == "Microsoft.Storage.BlobCreated" {
          root.name = this.data.url.parse_url().path.trim_prefix("/foocontainer/")
        } else {
          root = deleted()
        }
```