適用於 Azure Functions 的 Azure 數據總管系結概觀 (預覽)

這組文章說明如何在 Azure Functions 中使用 Azure 數據 總管系結。 Azure Functions 支援 Azure 數據總管叢集的輸入系結和輸出系結。

動作 類型
從資料庫讀取數據 輸入系結
將數據內嵌至資料庫 輸出系結

安裝延伸模組

您安裝的延伸模組 NuGet 套件取決於您在函式應用程式中使用的 C# 模式。

函式會在隔離的 C# 背景工作進程中執行。 若要深入瞭解,請參閱 在隔離背景工作程序中執行 C# Azure Functions 的指南。

藉由安裝 此 NuGet 套件,將擴充功能新增至您的專案。

dotnet add package Microsoft.Azure.Functions.Worker.Extensions.Kusto --prerelease

安裝套件組合

Azure 資料總管系結延伸模組是預覽延伸模組套件組合的一部分,它會在host.json項目檔中指定。

您可以在host.json檔案中新增或取代下列程式代碼,以新增預覽延伸模組套件組合:

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
    "version": "[4.*, 5.0.0)"
  }
}

Functions 運行時間

注意

Azure 數據總管系結延伸模組的 Python 語言支援可從 Functions 運行時間 v4.6.0 或更新版本開始提供。 您可能需要更新 Azure Functions Core Tools 的安裝以進行本機開發。

安裝套件組合

Azure 數據總管系結延伸模組是預覽 延伸模組套件組合的一部分,其指定於您的 host.json 項目檔中。

您可以在host.json檔案中新增或取代下列程式代碼,以新增預覽延伸模組套件組合:

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
    "version": "[4.*, 5.0.0)"
  }
}

安裝套件組合

Azure 資料總管系結延伸模組是預覽延伸模組套件組合的一部分,它會在host.json項目檔中指定。

您可以在host.json檔案中新增或取代下列程式代碼,以新增預覽延伸模組套件組合:

{
  "version": "2.0",
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
    "version": "[4.*, 5.0.0)"
  }
}

更新套件

使用 Python Azure Functions 專案中檔案的更新 pom.xml ,將適用於 Azure 數據總管的 Java 連結庫系結新增至 Functions 專案,如下所示:

<dependency>
    <groupId>com.microsoft.azure.functions</groupId>
    <artifactId>azure-functions-java-library-kusto</artifactId>
    <version>1.0.4-Preview</version>
</dependency>

Kusto 連接字串

Azure Functions 的 Azure 數據總管系結具有所有系結上 連接字串 的必要屬性。 連接字串 記載於 Kusto 連接字串。

考量

  • Azure 數據總管系結支援 4.x 版和更新版本的 Functions 運行時間。
  • Azure 數據總管系結的原始程式碼位於 此 GitHub 存放庫中
  • 此系結需要連線至 Azure 數據總管。 針對輸入系結,使用者需要 查看器 許可權。 針對輸出系結,使用者需要 擷取器 許可權。 如需許可權的詳細資訊,請參閱 角色型訪問控制

下一步