---
title: azure_data_lake_gen2
latest-connect-version: 4.118.0
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-redpanda-tag: v26.2.7
docname: outputs/azure_data_lake_gen2
page-component-name: connect
page-version: master
page-component-version: master
page-component-title: Connect
page-relative-src-path: outputs/azure_data_lake_gen2.adoc
page-edit-url: https://github.com/redpanda-data/rp-connect-docs/edit/main/modules/components/pages/outputs/azure_data_lake_gen2.adoc
description: Sends message parts as files to an Azure Data Lake Gen2 filesystem. Each file is uploaded with the filename specified with the path field.
page-cloud-available: "true"
page-cloud-available-url: https://docs.redpanda.com/cloud-data-platform/develop/connect/components/outputs/azure_data_lake_gen2/
page-git-created-date: "2024-11-05"
page-git-modified-date: "2026-10-29"
page-generated-sources:
  - include: connect:components:partial$descriptions/outputs/azure_data_lake_gen2.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$availability/outputs/azure_data_lake_gen2.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
  - include: connect:components:partial$fields/outputs/azure_data_lake_gen2.adoc
    generator: null
    version: null
    source: the component specs in https://github.com/redpanda-data/connect
page-generated-content: partial
---

# azure_data_lake_gen2

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

<!-- Source: https://docs.redpanda.com/connect/components/outputs/azure_data_lake_gen2.md -->

Sends message parts as files to an Azure Data Lake Gen2 filesystem. Each file is uploaded with the filename specified with the `path` field.

Introduced in version 4.38.0.

This output writes files to an [Azure Data Lake Storage Gen2](https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction) file system.

To set a different [`path`](#path) value (file name) for each file, use [function interpolations](https://docs.redpanda.com/connect/configuration/interpolation/#bloblang-queries), which are calculated per message of a batch.

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.

## Performance

This output benefits from sending multiple messages in flight in parallel for improved performance. You can tune the max number of in flight messages (or message batches) with the field `max_in_flight`.

```yml
output:
  label: ""
  azure_data_lake_gen2:
    storage_account: ""
    storage_access_key: ""
    storage_connection_string: ""
    storage_sas_token: ""
    filesystem: "" # No default (required)
    path: ${!counter()}-${!timestamp_unix_nano()}.txt
    max_in_flight: 64
```

## Fields

### `filesystem`

The name of the data lake storage file system you want to upload messages to.

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

**Type**: `string`

```yaml
# Examples:
filesystem: messages-${!timestamp("2006")}
```

### `max_in_flight`

The maximum number of messages to have in flight at a given time. For outputs that send messages in batches, this limit applies to message batches. Increase this value to improve throughput.

**Type**: `int`

**Default**: `64`

### `path`

The path (file name) of each message to upload to the data lake storage file system.

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

**Type**: `string`

**Default**: `${!counter()}-${!timestamp_unix_nano()}.txt`

```yaml
# Examples:
path: ${!counter()}-${!timestamp_unix_nano()}.json

# ---

path: ${!meta("kafka_key")}.json

# ---

path: ${!json("doc.namespace")}/${!json("doc.id")}.json
```

### `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`

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`

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`

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**: `""`