> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/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 连接字符串](/zh/integrations/connectors/data-ingestion/azure/azure-data-factory/using-azureblobstorage#acquiring-azure-blob-storage-access-keys)
* 容器名称
* 一个正在运行的 ClickHouse Cloud 服务

<Steps>
  <Step>
    ## 前往数据源

    在服务主页中，点击左侧菜单中的 **Data sources**。
    展开 **ClickPipes** 下拉菜单，然后点击 **Create ClickPipe**

    <Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/01-navigate-to-datasources.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=9fd9e4caa9d0ce6adafe5a85b27d4861" 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-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/02-create-clickpipe.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=886ebf0ec0ab9e3267d9d61587e4b05d" 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>
    ## 选择数据源

    选择 **Azure Blob Storage** 作为数据类型

    <Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/03-select-blob-storage.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=abf552c821ae9304830563e3567c03f3" 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>
    ## 设置 ClickPipe 连接

    1. 为 ClickPipe 指定一个便于识别的名称
    2. 在身份验证方法下拉菜单中选择 **Connection String**
    3. 将 Azure 连接字符串粘贴到 **Connection string** 字段中
    4. 输入容器名称
    5. 输入 Azure Blob 存储中的文件路径；如果要摄取多个文件，可使用通配符

    您也可以启用持续摄取。更多信息，请参见 ["Continuous Ingestion"](/zh/integrations/clickpipes/object-storage/azure-blob-storage/overview#continuous-ingestion)。

    最后，点击 **Incoming data**

    <Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/04-configuration-details.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=0e6e345df038ae7bc2e8a17234641d19" 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>
    ## 选择数据格式

    1. 选择文件类型
    2. 选择文件压缩方式 (`detect automatically`、`none`、`gzip`、`brotli`、`xz` 或 `zstd`)
    3. 完成其他格式相关配置，例如为逗号分隔格式指定分隔符
    4. 点击 **Parse information**

    <Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/05-choose-data-format.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=4c09d1cbf53f514553e3fb54f409e756" 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>
    ## 配置表、schema 和设置

    现在，您需要创建一个新表，或选择一个现有表来存储传入的数据。

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

    <Image img="https://mintcdn.com/private-7c7dfe99-postgresql-tls-support/w-Unfx0B83cK7_6Z/images/integrations/data-ingestion/clickpipes/object-storage/azure-blob-storage/06-parse-information.webp?fit=max&auto=format&n=w-Unfx0B83cK7_6Z&q=85&s=1afff20bc28c7fcc27329fce10e589e8" 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>
    ## 配置权限

    ClickPipes 会为数据写入创建一个专用的数据库用户。
    您可以为该用户选择一个角色。
    如果目标表需要访问 materialized view 或字典，请选择 "Full access"。

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

  <Step>
    ## 完成设置

    点击 **Create ClickPipe** 完成设置

    此时您应该会看到 ClickPipe 处于 provisioning 状态。
    稍等片刻后，它会从 **provisioning** 变为 **completed**。
  </Step>
</Steps>
