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

> 使用 ClickHouse 的 HTTP 接口将数据从 Azure Data Factory 导入 ClickHouse

# 在 Azure Data Factory 中使用 ClickHouse HTTP 接口

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>;
};

[`azureBlobStorage` 表函数](/docs/zh/reference/functions/table-functions/azureBlobStorage)
是将 Azure Blob 存储中的数据摄取到
ClickHouse 的一种快速便捷的方法。不过，出于以下原因，它并不总是适用：

* 你的数据可能并不存储在 Azure Blob 存储中——例如，可能位于 Azure SQL Database、Microsoft SQL Server 或 Cosmos DB 中。
* 安全策略可能会完全禁止对 Blob 存储的外部访问——例如，如果存储账户被锁定且没有公共端点。

在这种情况下，你可以将 Azure Data Factory 与
[ClickHouse HTTP 接口](/docs/zh/concepts/features/interfaces/http)
结合使用，将 Azure 服务中的数据发送到 ClickHouse。

这种方法颠倒了数据流向：不再由 ClickHouse 从
Azure 拉取数据，而是由 Azure Data Factory 将数据推送到 ClickHouse。该方法
通常要求你的 ClickHouse 实例可通过公共
互联网访问。

<Info>
  你可以通过
  使用 Azure Data Factory 的自托管集成运行时，避免将 ClickHouse 实例暴露到互联网。
  这种设置允许
  通过私有网络发送数据。不过，这超出了本文的讨论范围。
  你可以在官方指南中了解更多信息：
  [创建并配置自托管集成
  运行时](https://learn.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory)
</Info>

<div id="turning-clickhouse-to-a-rest-service">
  ## 将 ClickHouse 变成 REST 服务
</div>

Azure Data Factory 支持通过 HTTP 以 JSON
格式将数据发送到外部系统。我们可以利用这一能力，通过 [ClickHouse HTTP 接口](/docs/zh/concepts/features/interfaces/http)
直接将数据插入 ClickHouse。
你可以在 [ClickHouse HTTP Interface
documentation](/docs/zh/concepts/features/interfaces/http) 中了解更多信息。

对于本示例，我们只需指定目标表，将
输入数据格式定义为 JSON，并添加支持更灵活时间戳解析的选项。

```sql theme={null}
INSERT INTO my_table
SETTINGS 
    date_time_input_format='best_effort',
    input_format_json_read_objects_as_strings=1
FORMAT JSONEachRow
```

要将此查询作为 HTTP 请求的一部分发送，只需将其作为
URL 编码的字符串传给 ClickHouse 端点中的查询参数：

```text theme={null}
https://your-clickhouse-url.com?query=INSERT%20INTO%20my_table%20SETTINGS%20date_time_input_format%3D%27best_effort%27%2C%20input_format_json_read_objects_as_strings%3D1%20FORMAT%20JSONEachRow%0A
```

<Info>
  Azure Data Factory 可使用其内置的
  `encodeUriComponent` 函数自动处理这种编码，因此无需手动编码。
</Info>

现在，你可以将 JSON 格式的数据发送到此 URL。数据应与目标表的
结构一致。下面是一个使用 curl 的简单示例，假设该表包含三列：`col_1`、`col_2` 和 `col_3`。

```text theme={null}
curl \
    -XPOST "https://your-clickhouse-url.com?query=<our_URL_encded_query>" \
    --data '{"col_1":9119,"col_2":50.994,"col_3":"2019-06-01 00:00:00"}'
```

你也可以发送由对象组成的 JSON 数组，或 JSON Lines (以换行符分隔的
JSON 对象) 。Azure Data Factory 使用 JSON 数组格式，这与
ClickHouse 的 `JSONEachRow` 输入完全兼容。

如你所见，在这一步中，你无需在 ClickHouse
端做任何特殊处理。HTTP 接口 已经提供了充当
类 REST 端点所需的一切——无需额外配置。

现在我们已经让 ClickHouse 像 REST 端点一样工作，接下来就该
配置 Azure Data Factory 来使用它了。

在接下来的步骤中，我们将创建一个 Azure Data Factory 实例，设置一个指向你的 ClickHouse 实例的 链接服务，为
[REST sink](https://learn.microsoft.com/en-us/azure/data-factory/connector-rest)
定义一个 数据集，并创建一个 Copy Data activity，将数据从 Azure 发送到 ClickHouse。

<div id="create-an-azure-data-factory-instance">
  ## 创建 Azure Data Factory 实例
</div>

本指南假设你可以访问 Microsoft Azure 账户，并且
已配置好订阅和资源组。如果你已经
配置了 Azure Data Factory，则可直接跳过此步骤，
使用现有实例继续下一步。

1. 登录 [Microsoft Azure 门户](https://portal.azure.com/)，然后点击
   **Create a resource**。
   <Image img="https://mintcdn.com/private-7c7dfe99/Rm4A9_kDxZf0ApeE/images/integrations/data-ingestion/azure-data-factory/azure-home-page.webp?fit=max&auto=format&n=Rm4A9_kDxZf0ApeE&q=85&s=b0d761ffa5456ee5f604c62afde1bc95" size="lg" alt="Azure 门户主页" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/azure-home-page.webp" />

2. 在左侧的 Categories 窗格中，选择 **Analytics**，然后点击
   热门服务列表中的 **Data Factory**。
   <Image img="https://mintcdn.com/private-7c7dfe99/Rm4A9_kDxZf0ApeE/images/integrations/data-ingestion/azure-data-factory/azure-new-resource-analytics.webp?fit=max&auto=format&n=Rm4A9_kDxZf0ApeE&q=85&s=fa9aedc13e9631ba7ab88126a7aa3929" size="lg" alt="Azure 门户新建资源" border width="1271" height="593" data-path="images/integrations/data-ingestion/azure-data-factory/azure-new-resource-analytics.webp" />

3. 选择你的订阅和资源组，为新的 Data
   Factory 实例输入名称，选择区域，并将版本保留为 V2。
   <Image img="https://mintcdn.com/private-7c7dfe99/Rm4A9_kDxZf0ApeE/images/integrations/data-ingestion/azure-data-factory/azure-new-data-factory.webp?fit=max&auto=format&n=Rm4A9_kDxZf0ApeE&q=85&s=d255e91cca957801c1cdd1d562962188" size="lg" alt="Azure 门户新建 Data Factory" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/azure-new-data-factory.webp" />

4. 点击 **Review + Create**，然后点击 **Create** 以开始部署。

   <Image img="https://mintcdn.com/private-7c7dfe99/Rm4A9_kDxZf0ApeE/images/integrations/data-ingestion/azure-data-factory/azure-new-data-factory-confirm.webp?fit=max&auto=format&n=Rm4A9_kDxZf0ApeE&q=85&s=92a4c208870eccfe0a0e75e524c5893f" size="lg" alt="Azure 门户新建 Data Factory 确认" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/azure-new-data-factory-confirm.webp" />

   <Image img="https://mintcdn.com/private-7c7dfe99/Rm4A9_kDxZf0ApeE/images/integrations/data-ingestion/azure-data-factory/azure-new-data-factory-success.webp?fit=max&auto=format&n=Rm4A9_kDxZf0ApeE&q=85&s=d2e5ac6634bf77acc8dae0118d046a13" size="lg" alt="Azure 门户新建 Data Factory 成功" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/azure-new-data-factory-success.webp" />

部署成功完成后，你就可以开始使用新的 Azure
Data Factory 实例了。

<div id="-creating-new-rest-based-linked-service">
  ## 创建新的基于 REST 的链接服务
</div>

1. 登录 Microsoft Azure 门户，并打开你的 Data Factory 实例。
   <Image img="https://mintcdn.com/private-7c7dfe99/Rm4A9_kDxZf0ApeE/images/integrations/data-ingestion/azure-data-factory/azure-home-with-data-factory.webp?fit=max&auto=format&n=Rm4A9_kDxZf0ApeE&q=85&s=c2cc42be08679c1c107c468f45ef5179" size="lg" alt="带有 Data Factory 的 Azure 门户主页" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/azure-home-with-data-factory.webp" />

2. 在 Data Factory 概述页面中，点击 **Launch Studio**。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/azure-data-factory-page.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=4da3f492b500e54ee8a3b57e29c20b1a" size="lg" alt="Azure 门户 Data Factory 页面" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/azure-data-factory-page.webp" />

3. 在左侧菜单中，选择 **Manage**，然后进入 **Linked services**，
   再点击 **+ New** 创建新的链接服务。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-create-linked-service-button.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=270bab249684a88d2287b3e7823f7915" size="lg" alt="Azure Data Factory 新建链接服务按钮" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/adf-create-linked-service-button.webp" />

4. 在 **New linked service** 搜索栏中，输入 **REST**，选择 **REST**，然后点击 **Continue**
   以创建一个 [REST 连接器](https://learn.microsoft.com/en-us/azure/data-factory/connector-rest)
   实例。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-search.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=13ed7a60991f035a6c196be5bb0d8124" size="lg" alt="Azure Data Factory 新建链接服务搜索" border width="1271" height="674" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-search.webp" />

5. 在链接服务配置面板中，为你的新服务输入一个名称，
   点击 **Base URL** 字段，然后点击 **Add dynamic content** (只有在
   选中该字段后才会显示此链接) 。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-lined-service-pane.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=776d14cdc1ae42ec29f2fed782b391a2" size="lg" alt="新建链接服务面板" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-lined-service-pane.webp" />

6. 在动态内容面板中，你可以创建参数化 URL，
   这样稍后为不同
   表创建数据集时即可定义查询——从而让该链接服务能够复用。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-base-url-empty.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=21da6469c3a6f2ce6cc5d12153aeb53c" size="lg" alt="新建链接服务 Base URL 为空" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-base-url-empty.webp" />

7. 点击过滤器输入框旁边的 **"+"**，添加一个新参数，并将其命名为
   `pQuery`，将类型设置为 String，并将默认值设置为 `SELECT 1`。
   点击 **Save**。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-params.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=a41eb30bb076f1bf4893880f722911c5" size="lg" alt="新建链接服务参数" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-params.webp" />

8. 在表达式字段中，输入以下内容并点击 **OK**。将
   `your-clickhouse-url.com` 替换为你的 ClickHouse
   实例的实际地址。
   ```text theme={null}
   @{concat('https://your-clickhouse-url.com:8443/?query=', encodeUriComponent(linkedService().pQuery))}
   ```
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-expression-field-filled.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=a0b46adb41626460e11b160c507fbb93" size="lg" alt="已填写的新建链接服务表达式字段" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-expression-field-filled.webp" />

9. 返回主表单后，选择 basic authentication，输入用于连接到 ClickHouse HTTP 接口的
   用户名和密码，然后点击 **Test
   connection**。如果配置正确，你将看到一条成功
   消息。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-check-connection.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=bdb8928c5e47cef9c450b1207f9e96ab" size="lg" alt="新建链接服务检查连接" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-linked-service-check-connection.webp" />

10. 点击 **Create** 完成设置。
    <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-linked-services-list.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=37c3f58257c04f570e757428922b037c" size="lg" alt="链接服务列表" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-linked-services-list.webp" />

现在，你应该可以在列表中看到新注册的基于 REST 的链接服务。

<div id="creating-a-new-dataset-for-the-clickhouse-http-interface">
  ## 为 ClickHouse HTTP 接口创建新数据集
</div>

现在，我们已经为 ClickHouse HTTP 接口配置好了链接服务，
接下来可以创建一个供 Azure Data Factory 用于向
ClickHouse 发送数据的数据集。

在本示例中，我们将插入一小部分 [Environmental Sensors
Data](/docs/zh/get-started/sample-datasets/environmental-sensors)。

1. 打开你常用的 ClickHouse 查询控制台——可以是
   ClickHouse Cloud Web UI、CLI 客户端，或你用于
   运行查询的任何其他接口——然后创建目标表：
   ```sql theme={null}
   CREATE TABLE sensors
   (
       sensor_id UInt16,
       lat Float32,
       lon Float32,
       timestamp DateTime,
       temperature Float32
   )
   ENGINE = MergeTree
   ORDER BY (timestamp, sensor_id);
   ```

2. 在 Azure Data Factory Studio 中，在左侧窗格选择 Author。将鼠标悬停
   在 Dataset 项上，点击三点图标，然后选择 New dataset。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-item.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=1b75d0a343c52d6eb767808c1a758401" size="lg" alt="新建数据集项" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-item.webp" />

3. 在搜索栏中输入 **REST**，选择 **REST**，然后点击 **Continue**。
   为数据集输入名称，并选择你在上一步中创建的 **链接服务**。
   点击 **OK** 以创建数据集。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-page.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=235d2d8ff1c7ea872ebae05e2941c7e9" size="lg" alt="新建数据集页面" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-page.webp" />

4. 现在，你应该能在左侧 Factory Resources 窗格中的 Datasets
   部分看到新创建的数据集。选择该数据集以
   打开其属性。你会看到在
   链接服务中定义的 `pQuery` 参数。点击 **Value** 文本字段，然后点击 **Add dynamic**
   content。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-properties.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=4c004ee2a5f0cb1c0b11f04638184b06" size="lg" alt="新建数据集属性" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-properties.webp" />

5. 在打开的窗格中，粘贴以下查询：
   ```sql theme={null}
   INSERT INTO sensors
   SETTINGS 
       date_time_input_format=''best_effort'', 
       input_format_json_read_objects_as_strings=1 
   FORMAT JSONEachRow
   ```

<Danger>
  查询中的所有单引号 `'` 都必须替换为两个单引号
  `''`。这是 Azure Data Factory 表达式解析器的要求。如果你
  没有对它们进行转义，可能不会立即看到报错——但稍后在尝试使用或保存该数据集时，
  就会失败。例如，`'best_effort'`
  必须写成 `''best_effort''`。
</Danger>

<Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-query.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=ffbbe8a0add97c87d77247bf209dae91" size="xl" alt="新建数据集查询" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-query.webp" />

6. 点击 OK 保存表达式。点击 Test connection。如果一切都已
   配置正确，你会看到 Connection successful 消息。点击页面顶部的 Publish
   all 以保存更改。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-connection-successful.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=d90b3c32a251a96fab168682901fa2f9" size="xl" alt="新建数据集连接成功" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-dataset-connection-successful.webp" />

<div id="setting-up-an-example-dataset">
  ### 设置示例数据集
</div>

在本示例中，我们不会使用完整的 Environmental Sensors Dataset，
而只使用其中一个较小的子集，你可以从
[Sensors Dataset Sample](https://datasets-documentation.s3.eu-west-3.amazonaws.com/environmental/sensors.csv) 获取。

<Info>
  为使本指南重点更明确，我们不会详细介绍如何在 Azure Data Factory 中创建
  源数据集的具体步骤。你可以将样本数据上传到你选择的任何
  存储服务，例如 Azure Blob 存储、Microsoft SQL
  Server，甚至 Azure Data Factory 支持的其他文件格式。
</Info>

将数据集上传到 Azure Blob 存储 (或其他首选存储
服务) 后，在 Azure Data Factory Studio 中转到 Factory Resources 窗格。
创建一个指向已上传数据的新数据集。点击 Publish all
以保存更改。

<div id="creating-the-copy-activity-to-transfer-data-to-clickhouse">
  ## 创建用于将数据传输到 ClickHouse 的复制活动
</div>

现在我们已经配置好了输入和输出数据集，可以设置一个
**Copy Data** 活动，将示例数据集中的数据传输到 ClickHouse 的
`sensors` 表中。

1. 打开 **Azure Data Factory Studio**，进入 **Author** 选项卡。在
   **Factory Resources** 窗格中，将鼠标悬停在 **Pipeline** 上，点击三点
   图标，然后选择 **New pipeline**。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-pipeline-item.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=d3c1c16549a61d489773282b1bf26cf9" size="lg" alt="ADF 新建管道项" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-pipeline-item.webp" />

2. 在 **Activities** 窗格中，展开 **Move and transform** 部分，然后将
   **Copy data** 活动拖到画布上。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-new-copy-data-item.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=1737b4dfa0d2c77f9b694faead80db5d" size="lg" alt="新建复制数据项" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-new-copy-data-item.webp" />

3. 选择 **Source** 选项卡，然后选择你之前创建的源数据集。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-copy-data-source.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=788143c41fd143288730672be13f56f9" size="lg" alt="复制数据源" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-copy-data-source.webp" />

4. 转到 **Sink** 选项卡，选择为
   `sensors` 表创建的 ClickHouse 数据集。将 **Request method** 设置为 POST。确保 **HTTP compression
   type** 设置为 **None**。

<Warning>
  HTTP 压缩在 Azure Data Factory 的 Copy Data
  活动中无法正常工作。启用后，Azure 发送的载荷将只包含零字节
  —— 这很可能是该服务的一个 bug。请务必保持禁用压缩。
</Warning>

<Info>
  我们建议保留默认的批次大小 10,000，甚至进一步调大。
  更多详情，请参阅
  [选择插入策略 / 同步时的批次插入](/docs/zh/concepts/best-practices/selecting-an-insert-strategy#batch-inserts-if-synchronous)。
</Info>

<Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-copy-data-sink-select-post.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=f99e35185260d6fe9ffff2e6a1ed414b" size="lg" alt="复制数据接收端选择 POST" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-copy-data-sink-select-post.webp" />

5. 点击画布顶部的 **Debug** 以运行该管道。稍等片刻后，
   该活动将进入队列并开始执行。如果所有配置都正确，
   任务应以 **Success** 状态完成。
   <Image img="https://mintcdn.com/private-7c7dfe99/k4wNHsd_gyvah7Fr/images/integrations/data-ingestion/azure-data-factory/adf-copy-data-debug-success.webp?fit=max&auto=format&n=k4wNHsd_gyvah7Fr&q=85&s=29d5e17f16d8c554323958ff0a36bd60" size="lg" alt="复制数据调试成功" border width="1158" height="765" data-path="images/integrations/data-ingestion/azure-data-factory/adf-copy-data-debug-success.webp" />

6. 完成后，点击 **Publish all** 以保存管道和数据集的更改。

<div id="additional-resources-1">
  ## 其他资源
</div>

* [HTTP 接口](/docs/zh/concepts/features/interfaces/http)
* [使用 Azure Data Factory 从 REST 端点复制和转换数据，以及将数据复制和转换到 REST 端点](https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory)
* [选择插入策略](/docs/zh/concepts/best-practices/selecting-an-insert-strategy)
* [创建并配置自托管集成运行时](https://learn.microsoft.com/en-us/azure/data-factory/create-self-hosted-integration-runtime?tabs=data-factory)
