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

# Azure CSV source

> Configuration reference for `AzureCsvSourceDescription`, which loads CSV files from an Azure Blob Storage container and prefix using a `BlobServiceClient` bean.

The container and prefix to read from are set through the `container` and `prefix` properties.

The DLC ensures that only files within that source can be loaded.

<Note>
  To use this source, a `BlobServiceClient` bean must be defined.
  A default one can be used by enabling `dlc.create-default-cloud-client.azure`.
</Note>

### Configuration properties

Properties for an Azure CSV Source are defined by name in the `dlc.csv.azure.sources` namespace,
and are picked up as configurations for the DLC.

| Key                     | Required | Type                                   | Description                                                                                                  |
| ----------------------- | :------: | -------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| container               |     Y    | `String`                               | The container of the directory.                                                                              |
| prefix                  |     Y    | `String`                               | The directory. Can include [Scope Parameters](/functional/scope-parameters). <br />Example `#{SCOPE_PARAM}`  |
| source-properties       |          | `CsvSourceConfigurationProperties`     | [CSV Source Configuration](/configuration/csv/csv-source-config)                                             |
| cloud-fetching-config   |          | `CloudFetchingConfigurationProperties` | [Cloud Fetching Config](/configuration/cloud-fetching-config)                                                |
| topics-to-include       |          | `Set<String>`                          | Topics to include. See [source to topic matching](/functional/source-to-topic-matching).                     |
| topics-to-exclude       |          | `Set<String>`                          | Topics to exclude. See [source to topic matching](/functional/source-to-topic-matching).                     |
| accepts-topic-overrides |          | `Boolean`                              | Whether this source is allowed to accept Topic Overrides in the [Load Request](/operations/operations-load). |

#### YAML example

```yaml theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
dlc:
  csv:
    azure:
      sources:
        azureCsvSource:
          container: container
          prefix: dataDir
```

### Java configuration

`AzureCsvSourceDescription` Spring Beans are picked up as configurations for the DLC.

| Parameter             | Required | Type                     | Description                                                                                                  |
| --------------------- | :------: | ------------------------ | :----------------------------------------------------------------------------------------------------------- |
| name                  |     Y    | `String`                 | Name of the source.                                                                                          |
| container             |     Y    | `String`                 | The container of the directory.                                                                              |
| prefix                |     Y    | `String`                 | The directory. Can include [Scope Parameters](/functional/scope-parameters). <br />Example `#{SCOPE_PARAM}`  |
| sourceConfiguration   |          | `CsvSourceConfiguration` | [CSV Source Configuration](/configuration/csv/csv-source-config)                                             |
| cloudFetchingConfig   |          | `CloudFetchingConfig`    | [Cloud Fetching Config](/configuration/cloud-fetching-config)                                                |
| topicsToInclude       |          | `Set<String>`            | Topics to include. See [source to topic matching](/functional/source-to-topic-matching).                     |
| topicsToExclude       |          | `Set<String>`            | Topics to exclude. See [source to topic matching](/functional/source-to-topic-matching).                     |
| acceptsTopicOverrides |          | `Boolean`                | Whether this source is allowed to accept Topic Overrides in the [Load Request](/operations/operations-load). |

#### Java example

```java theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
@Bean
AzureCsvSourceDescription source() {
    return AzureCsvSourceDescription.builder(
                    "azureCsvSource",
                    "container",
                    "dataDir"
            )
            .build();
}
```
