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

> 分步指导您创建第一个 Azure Blob 存储 (ABS) ClickPipe。

# 创建您的第一个 Azure Blob 存储 ClickPipe

export const Image = ({img, alt, size = "lg"}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} />
      </Frame>
    </div>;
};

**前置条件**

要按照本指南进行操作，你需要准备：

* 一个 Azure Blob 存储账户
* [Azure 连接字符串](/docs/zh/integrations/connectors/data-ingestion/azure/azure-data-factory/using-azureblobstorage#acquiring-azure-blob-storage-access-keys)
* 容器名称
* 一个正在运行的 ClickHouse Cloud 服务

<Steps>
  <Step title="导航到数据源" id="navigate-to-data-sources">
    在服务主页中，点击左侧菜单中的 **Data sources**。
    展开 **ClickPipes** 下拉列表，然后点击 **Create ClickPipe**

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/01-navigate-to-datasources.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=0d06cfe189734b48a93d3fe72bf24adf" alt="导航到数据源" size="md" width="1702" height="1030" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/01-navigate-to-datasources.webp" />

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/02-create-clickpipe.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=eabafe287f6e0df0a6db8895795209ad" alt="创建 ClickPipe" size="md" width="1134" height="390" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/02-create-clickpipe.webp" />
  </Step>

  <Step title="选择数据源" id="select-data-source">
    选择 **Azure Blob Storage** 作为数据类型

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/03-select-blob-storage.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=4be8f4a756ecb27bac9daae3288152a3" alt="选择 Azure Blob Storage" size="md" width="1194" height="624" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/03-select-blob-storage.webp" />
  </Step>

  <Step title="设置你的 ClickPipe 连接" id="setup-connection">
    1. 为 ClickPipe 指定一个便于识别的名称
    2. 在身份验证方法下拉列表中选择 **Connection String**
    3. 将 Azure 连接字符串粘贴到 **Connection string** 字段中
    4. 输入容器名称
    5. 输入 Azure Blob 存储文件路径；如果要摄取多个文件，可以使用通配符

    你也可以启用持续摄取。更多详情请参见["持续摄取"](/docs/zh/integrations/clickpipes/object-storage/azure-blob-storage/overview#continuous-ingestion)。

    最后，点击 **Incoming data**

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/04-configuration-details.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=33870a6346a271a4be06726ef10071cd" alt="配置详细信息" size="md" width="1226" height="842" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/04-configuration-details.webp" />
  </Step>

  <Step title="选择数据格式" id="select-data-format">
    1. 选择文件类型
    2. 选择文件压缩方式 (`detect automatically`、`none`、`gzip`、`brotli`、`xz` 或 `zstd`)
    3. 完成其他特定格式的配置，例如逗号分隔格式使用的分隔符
    4. 点击 **Parse information**

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/05-choose-data-format.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=cf8437ea30fee90e66f78840b40e81f7" alt="选择数据格式" size="md" width="1214" height="624" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/05-choose-data-format.webp" />
  </Step>

  <Step title="配置表、schema 和设置" id="configure-table-schema">
    现在，你需要创建一个新表，或选择一个现有表来存储传入的数据。

    1. 选择将数据上传到新表还是现有表
    2. 选择要使用的数据库；如果是新表，还需为该表命名
    3. 选择一个或多个排序键
    4. 定义从源文件到目标表的映射，包括列名、列类型、默认值和可空性
    5. 最后，指定高级设置，例如要使用的引擎类型、分区表达式和主键

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/06-parse-information.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=b928b947974b7a7040059dd127ec67e4" alt="解析信息" size="md" width="1212" height="1434" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/06-parse-information.webp" />

    完成表、schema 和设置的配置后，点击 **Details and settings**
  </Step>

  <Step title="配置权限" id="configure-permissions">
    ClickPipes 会为数据写入设置一个专用的数据库用户。
    你可以为该用户选择一个角色。
    如果需要从目标表访问 materialized view 或字典，请选择 "Full access"。

    <Image img="https://mintcdn.com/private-7c7dfe99/KW34O4k4cC0oxlHH/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/07-permissions.webp?fit=max&auto=format&n=KW34O4k4cC0oxlHH&q=85&s=b7183cf4e5a61bbf3952fe05aac911c2" alt="配置权限" size="md" width="1186" height="548" data-path="images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/07-permissions.webp" />
  </Step>

  <Step title="完成设置" id="complete-setup">
    点击 **Create ClickPipe** 完成设置

    现在，你应该能看到 ClickPipe 处于 provisioning 状态。
    稍等片刻后，它将从 **provisioning** 变为 **completed**。
  </Step>
</Steps>
