如何创建和配置 Azure 集成运行时How to create and configure Azure Integration Runtime

适用于:是 Azure 数据工厂是 Azure Synapse Analytics(预览版)APPLIES TO: yesAzure Data Factory yesAzure Synapse Analytics (Preview)

集成运行时 (IR) 是 Azure 数据工厂用于在不同的网络环境之间提供数据集成功能的计算基础结构。The Integration Runtime (IR) is the compute infrastructure used by Azure Data Factory to provide data integration capabilities across different network environments. 有关 IR 的更多信息,请参阅集成运行时For more information about IR, see Integration runtime.

Azure IR 提供完全托管的计算,以本机执行数据移动和调度数据转换活动来计算 HDInsight 这样的服务。Azure IR provides a fully managed compute to natively perform data movement and dispatch data transformation activities to compute services like HDInsight. 它在 Azure 环境中托管,并支持连接到具有公共可访问端点的公共网络环境中的资源。It is hosted in Azure environment and supports connecting to resources in public network environment with public accessible endpoints.

本文档介绍了如何创建和配置 Azure 集成运行时。This document introduces how you can create and configure Azure Integration Runtime.

备注

本文进行了更新,以便使用新的 Azure PowerShell Az 模块。This article has been updated to use the new Azure PowerShell Az module. 你仍然可以使用 AzureRM 模块,至少在 2020 年 12 月之前,它将继续接收 bug 修补程序。You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. 若要详细了解新的 Az 模块和 AzureRM 兼容性,请参阅新 Azure Powershell Az 模块简介To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. 有关 Az 模块安装说明,请参阅安装 Azure PowerShellFor Az module installation instructions, see Install Azure PowerShell.

默认 Azure IRDefault Azure IR

默认情况下,每个数据工厂在后端都有 Azure IR,支持云数据存储上的操作和公共网络中的计算服务。By default, each data factory has an Azure IR in the backend that supports operations on cloud data stores and compute services in public network. 该 Azure IR 的位置会自动解析。The location of that Azure IR is autoresolve. 如果链接服务定义中未指定 connectVia 属性,则会使用默认的 Azure IR。If connectVia property is not specified in the linked service definition, the default Azure IR is used. 如果想要显式定义 IR 的位置,或对不同 IR 上的活动执行进行虚拟分组以进行管理,只需显式创建 Azure IR。You only need to explicitly create an Azure IR when you would like to explicitly define the location of the IR, or if you would like to virtually group the activity executions on different IRs for management purpose.

创建 Azure IRCreate Azure IR

若要创建并设置 Azure IR,可以使用以下过程。To create and set up an Azure IR, you can use the following procedures.

通过 Azure PowerShell 创建 Azure IRCreate an Azure IR via Azure PowerShell

可以使用 Set-AzDataFactoryV2IntegrationRuntime PowerShell cmdlet 创建集成运行时。Integration Runtime can be created using the Set-AzDataFactoryV2IntegrationRuntime PowerShell cmdlet. 若要创建 Azure IR,请指定命令的名称、位置和类型。To create an Azure IR, you specify the name, location, and type to the command. 下面的示例命令创建了位置设为“中国东部 2”的 Azure IR:Here is a sample command to create an Azure IR with location set to "China East 2":

Set-AzDataFactoryV2IntegrationRuntime -DataFactoryName "SampleV2DataFactory1" -Name "MySampleAzureIR" -ResourceGroupName "ADFV2SampleRG" -Type Managed -Location "China East 2"

Azure IR 的类型必须设置为托管For Azure IR, the type must be set to Managed. 无需指定计算详细信息,因为它在云中是完全弹性托管的。You do not need to specify compute details because it is fully managed elastically in cloud. 如果要创建 Azure-SSIS IR,请指定计算详细信息,如节点大小和节点数量。Specify compute details like node size and node count when you would like to create Azure-SSIS IR. 有关详细信息,请参阅创建和配置 Azure-SSIS IRFor more information, see Create and Configure Azure-SSIS IR.

可以使用 Set-AzDataFactoryV2IntegrationRuntime PowerShell cmdlet 来配置现有 Azure IR 以更改其位置。You can configure an existing Azure IR to change its location using the Set-AzDataFactoryV2IntegrationRuntime PowerShell cmdlet. 有关 Azure IR 的位置的详细信息,请参阅集成运行时简介For more information about the location of an Azure IR, see Introduction to integration runtime.

通过 Azure 数据工厂 UI 创建 Azure IRCreate an Azure IR via Azure Data Factory UI

使用以下步骤通过 Azure 数据工厂 UI 创建 Azure IR。Use the following steps to create an Azure IR using Azure Data Factory UI.

  1. 在 Azure 数据工厂 UI 的“开始使用”页上,从最左侧的窗格选择“管理”选项卡On the Let's get started page of Azure Data Factory UI, select the Manage tab from the leftmost pane.

    主页“管理”按钮

  2. 在左窗格中选择“集成运行时”,然后选择“+ 新建” 。Select Integration runtimes on the left pane, and then select +New.

    创建集成运行时

  3. 在“集成运行时安装”页中选择“Azure,自承载”,然后选择“继续”。 On the Integration runtime setup page, select Azure, Self-Hosted, and then select Continue.

  4. 在下一页上选择“Azure”以创建 Azure IR,然后选择“继续”。On the following page, select Azure to create an Azure IR, and then select Continue. 创建集成运行时Create an integration runtime

  5. 输入 Azure IR 的名称,然后选择“创建”。Enter a name for your Azure IR, and select Create. 创建 Azure IRCreate an Azure IR

  6. 创建完成后,会显示一个弹出通知。You'll see a pop-up notification when the creation completes. 在“集成运行时”页上,确保在列表中看到新建的 IR。On the Integration runtimes page, make sure that you see the newly created IR in the list.

使用 Azure IRUse Azure IR

创建 Azure IR 后,您可以在链接的服务定义中引用它。Once an Azure IR is created, you can reference it in your Linked Service definition. 以下示例说明如何从 Azure 存储链接服务引用上面创建的 Azure 集成运行时:Below is a sample of how you can reference the Azure Integration Runtime created above from an Azure Storage Linked Service:

{
    "name": "MyStorageLinkedService",
    "properties": {
      "type": "AzureStorage",
      "typeProperties": {
        "connectionString": "DefaultEndpointsProtocol=https;AccountName=myaccountname;AccountKey=...;EndpointSuffix=core.chinacloudapi.cn"
      },
      "connectVia": {
        "referenceName": "MySampleAzureIR",
        "type": "IntegrationRuntimeReference"
      }   
    }
}

后续步骤Next steps

有关如何创建其他类型的集成运行时,请参阅以下文章:See the following articles on how to create other types of integration runtimes: