如何建立和設定 Azure 整合執行階段

適用于: Azure Data Factory Azure Synapse Analytics

提示

試用 Microsoft Fabric 中的 Data Factory,這是適用于企業的單一分析解決方案。 Microsoft Fabric 涵蓋從資料移動到資料科學、即時分析、商業智慧和報告等所有專案。 瞭解如何 免費啟動新的試用版

Integration Runtime (IR) 是 Azure Data Factory 和 Synapse 管線用來跨不同網路環境提供資料整合功能的計算基礎結構。 如需 IR 的詳細資訊,請參閱 整合執行時間

Azure IR 提供完全受控的計算,以原生方式執行資料移動,並將資料轉換活動分派至 HDInsight 等計算服務。 它裝載于 Azure 環境中,並支援使用公用可存取端點連線到公用網路環境中的資源。

本檔介紹如何建立及設定 Azure Integration Runtime。

注意

建議您使用 Azure Az PowerShell 模組來與 Azure 互動。 請參閱安裝 Azure PowerShell 以開始使用。 若要了解如何移轉至 Az PowerShell 模組,請參閱將 Azure PowerShell 從 AzureRM 移轉至 Az

預設 Azure IR

根據預設,每個資料處理站或 Synapse 工作區在後端都有 Azure IR,可支援雲端資料存放區和公用網路中計算服務的作業。 Azure IR 的位置會自動解決。 如果未 在連結的服務定義中指定 connectVia 屬性,則會使用預設的 Azure IR。 當您想要明確定義 IR 的位置時,或如果您想要針對管理目的,以虛擬方式將活動執行分組,則只需要明確建立 Azure IR。

建立 Azure IR

若要建立及設定 Azure IR,您可以使用下列程式。

透過 Azure PowerShell 建立 Azure IR

Integration Runtime 可以使用 Set-AzDataFactoryV2IntegrationRuntime PowerShell Cmdlet 來建立 。 若要建立 Azure IR,您可以指定命令的名稱、位置和類型。 以下是建立 Azure IR 的範例命令,並將位置設定為 「西歐」:

Set-AzDataFactoryV2IntegrationRuntime -DataFactoryName "SampleV2DataFactory1" -Name "MySampleAzureIR" -ResourceGroupName "ADFV2SampleRG" -Type Managed -Location "West Europe"

針對 Azure IR,類型必須設定為 [受控 ]。 您不需要指定計算詳細資料,因為它在雲端中完全受控。 當您想要建立 Azure-SSIS IR 時,請指定節點大小和節點計數等計算詳細資料。 如需詳細資訊,請參閱 建立及設定 Azure-SSIS IR

您可以使用 Set-AzDataFactoryV2IntegrationRuntime PowerShell Cmdlet,設定現有的 Azure IR 來變更其位置。 如需 Azure IR 位置的詳細資訊,請參閱 整合執行時間 簡介。

透過 UI 建立 Azure IR

使用下列步驟,使用 UI 建立 Azure IR。

  1. 在服務的首頁上,從最左邊的窗格中選取 [管理] 索引標籤。

  2. 選取 左窗格中的 [整合執行時間 ],然後選取 [ +新增 ]。

  3. 在 [ 整合執行時間設定 ] 頁面上,選取 [Azure]、[自我裝載 ],然後選取 [ 繼續 ]。 Screenshot showing the Azure self-hosted integration runtime option.

  4. 在下列頁面上,選取 [Azure] 以建立 Azure IR,然後選取 [ 繼續 ]。 Screenshot that shows create an Azure integration runtime.

  5. 輸入 Azure IR 的名稱,然後選取 [ 建立 ]。 Screenshot that shows the final step to create the Azure integration runtime.

  6. 建立完成時,您會看到快顯通知。 在 [ 整合執行時間] 頁面上,確定您在清單中看到新建立的 IR。 Screenshot showing the Azure integration runtime in the list.

  7. 如果狀態顯示為 [有限 ],您可以按一下 [修復] 按鈕來修復 Azure 整合執行時間。 Screenshot showing the Azure integration runtime repair.

注意

如果您想要在 Azure IR 上啟用受控虛擬網路,請參閱 如何啟用受控虛擬網路

使用 Azure IR

建立 Azure IR 之後,您可以在連結服務定義中參考它。 以下範例說明如何從Azure 儲存體連結服務參考上述建立的 Azure Integration Runtime:

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

請參閱下列文章,以瞭解如何建立其他類型的整合執行時間: