Integrating Azure Blob Storage with ClickHouse Cloud

```
DefaultEndpointsProtocol=https;AccountName=storage-account-name;AccountKey=account-access-key;EndpointSuffix=core.windows.net
```

You can find your storage account name and access key in the Azure Portal under **Storage Account > Access keys**.

#### Shared Access Signature (SAS)[​](#sas "Direct link to Shared Access Signature (SAS)")

To authenticate using a [Shared Access Signature (SAS)](https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview), provide a connection string that includes the SAS token:

```
BlobEndpoint=https://storage-account-name.blob.core.windows.net/;SharedAccessSignature=sas-token
```

Generate a SAS token in the Azure Portal under **Storage Account > Shared access signature** with the appropriate permissions (`Read`, `List`) for the container and blobs you want to ingest.

### Network access[​](#network-access "Direct link to Network access")

ABS ClickPipes use two distinct network paths for metadata discovery and data ingestion: the ClickPipes service and the ClickHouse Cloud service, respectively. If you want to configure an additional layer of network security (e.g., for compliance reasons), network access **must be configured for both paths**.

Note

IP-based access control **doesn't work** if your Azure Blob Storage container is in the same Azure region as your ClickHouse Cloud service. When both services are co-located, traffic is routed through Azure's internal network, rather than the public internet.

- For **IP-based access control**, the [IP network rules](https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security) for your Azure Storage firewall must allow the static IPs for the ClickPipes service region listed [here](/docs/integrations/clickpipes#list-of-static-ips), as well as the [static IPs](/docs/manage/data-sources/cloud-endpoints-api) for the ClickHouse Cloud service. To obtain the static IPs for your ClickHouse Cloud region, open a terminal and run:

  ```
  # Replace <your-region> with your ClickHouse Cloud region
  curl -s https://api.clickhouse.cloud/static-ips.json | jq -r '.azure[] | select(.region == "<your-region>") | .egress_ips[]'
  ```

## Advanced settings[​](#advanced-settings "Direct link to Advanced settings")

ClickPipes provides sensible defaults that cover the requirements of most use cases. If your use case requires additional fine-tuning, you can adjust the following settings:

|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Setting Default value Description|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `Max insert bytes` 10GB Number of bytes to process in a single insert batch.|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `Max file count` 100 Maximum number of files to process in a single insert batch.|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `Max threads` auto(3) [Maximum number of concurrent threads](/docs/operations/settings/settings#max_threads) for file processing.| `Max insert threads` 1 [Maximum number of concurrent insert threads](/docs/operations/settings/settings#max_insert_threads) for file processing.| `Min insert block size bytes` 1GB [Minimum size of bytes in the block](/docs/operations/settings/settings#min_insert_block_size_bytes) which can be inserted into a table.| `Max download threads` 4 [Maximum number of concurrent download threads](/docs/operations/settings/settings#max_download_threads).| `Object storage polling interval` 30s Configures the maximum wait period before inserting data into the ClickHouse cluster.|  |  |  |  |  |  |  |  |  | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | `Parallel distributed insert select` 2 [Parallel distributed insert select setting](/docs/operations/settings/settings#parallel_distributed_insert_select).| `Parallel view processing` false Whether to enable pushing to attached views [concurrently instead of sequentially](/docs/operations/settings/settings#parallel_view_processing).| `Use cluster function` true Whether to process files in parallel across multiple nodes. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |

### Scaling[​](#scaling "Direct link to Scaling")

Object Storage ClickPipes are scaled based on the minimum ClickHouse service size determined by the [configured vertical autoscaling settings](/docs/cloud/features/autoscaling/vertical#configuring-vertical-auto-scaling). The size of the ClickPipe is determined when the pipe is created. Subsequent changes to the ClickHouse service settings won't affect the ClickPipe size.

To increase the throughput on large ingest jobs, we recommend scaling the ClickHouse service before creating the ClickPipe.

## Known limitations[​](#known-limitations "Direct link to Known limitations")

### File size[​](#file-size "Direct link to File size")

ClickPipes will only attempt to ingest objects that are **10GB or smaller** in size. If a file is greater than 10GB, an error will be appended to the ClickPipes dedicated error table.

### Latency[​](#latency "Direct link to Latency")

For containers with over 100,000 files, Azure blob Storage `LIST` operations introduce extra latency when detecting new files, in addition to the default polling interval:

- **< 100k files**: ~30 seconds (default polling interval)
- **100k files**: ~40-45 seconds
- **250k files**: ~55-70 seconds
- **500k+ files**: May exceed 90 seconds

For [continuous ingestion](#continuous-ingestion), ClickPipes must scan the container to identify new files lexically greater than the last ingested file. We recommend organizing files into smaller containers, or using hierarchical directory structures to reduce the number of files per listing operation.

### View support[​](#view-support "Direct link to View support")

Materialized views on the target table are also supported. ClickPipes will create staging tables not only for the target table, but also any dependent materialized view.

We don't create staging tables for non-materialized views. This means that if you have a target table with one of more downstream materialized views, those materialized views should avoid selecting data via a view from the target table. Otherwise, you may find that you're missing data in the materialized view.

### Dependencies[​](#dependencies "Direct link to Dependencies")

Any changes to the destination table, its materialized views (including cascading materialized views), or the target tables of the materialized views while the ClickPipe is running will result in retriable errors. To make schema changes to these dependencies, you should pause the ClickPipe, apply the changes, and then resume.

- [Supported formats](#supported-formats)- [Features](#features)
    - [One-time ingestion](#one-time-ingestion)- [Continuous ingestion](#continuous-ingestion)- [File pattern matching](#file-pattern-matching)- [Exactly-once semantics](#exactly-once-semantics)- [Virtual columns](#virtual-columns)- [Access control](#access-control)
      - [Permissions](#permissions)- [Authentication](#authentication)- [Network access](#network-access)- [Advanced settings](#advanced-settings)
        - [Scaling](#scaling)- [Known limitations](#known-limitations)
          - [File size](#file-size)- [Latency](#latency)- [View support](#view-support)- [Dependencies](#dependencies)

Was this page helpful?