UiPath Documentation
integration-service
latest
false
Integration Service 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 Integration Service 中提供的连接器包采用的是机器翻译的译文。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

Databricks authentication

Connect UiPath to a Databricks workspace using OAuth 2.0 client credentials with a Databricks OAuth service principal or a Microsoft Entra ID service principal.

先决条件​

The Databricks connector authenticates as a service principal using OAuth 2.0 client credentials (machine-to-machine). Two kinds of service principal are supported:

  • A Databricks OAuth service principal, managed in the Databricks account console.
  • A Microsoft Entra ID service principal, for Azure Databricks workspaces.

To create a connection, you need the following values:

字段描述
Workspace HostWorkspace hostname only, without https:// or a trailing slash. For example, adb-1234567890123456.7.azuredatabricks.net.
客户端 IDThe service principal's Application ID (UUID).
客户端密码An OAuth secret generated for that service principal. This is not a personal access token.
OAuth Token URLThe token endpoint. Defaults to https://{workspace.host}/oidc/v1/token.
OAuth 作用域The requested scope. Defaults to all-apis.

检索您的凭据​

  1. Extract the Workspace Host from your Databricks workspace URL. For example, in https://adb-1234567890123456.7.azuredatabricks.net/browse/folders/workspace, the workspace host is adb-1234567890123456.7.azuredatabricks.net.

  2. In the Databricks account console, go to User management > Service principals and create a service principal, or select an existing one.

  3. Copy the service principal's Application ID (UUID) — this is the Client ID.

  4. On the service principal, go to Secrets > Generate secret and copy the generated OAuth secret — this is the Client Secret. The secret is shown only once.

    重要提示:

    Use an OAuth secret, not a personal access token. Personal access tokens are not supported by this connector.

  5. Grant the service principal access to the workspace and to every object your automation uses, such as the SQL warehouse, jobs, Unity Catalog securables, volumes, Genie spaces, and Vector Search indexes.

For more information, see OAuth machine-to-machine (M2M) authentication and Manage service principals in the Databricks documentation.

备注:

The default OAuth Scope of all-apis lets the token reach every API the service principal is authorized for. Databricks also supports scoped OAuth secrets, which restrict a secret to a specific set of API scopes such as sql, jobs, or unity-catalog. If you use one, the scope must still cover every Databricks API your automation calls, or those activities fail at runtime.

Add the Databricks connection​

  1. 从产品启动器中选择“Orchestrator”。

  2. 选择一个文件夹,然后导航到“连接”选项卡。

  3. 选择“添加连接”。

  4. 要打开连接创建页面,请从列表中选择连接器。您可以使用搜索栏查找连接器。

  5. Enter the Workspace Host, Client ID, and Client Secret.

    在可用的情况下,选择字段旁边的菜单,然后选择“使用凭据资产”或“使用 Orchestrator 资产”以引用 Orchestrator 资产,而不是直接输入值。有关更多信息,请参阅使用凭据资产进行连接。

    If you are using a Microsoft Entra ID service principal, update OAuth Token URL and OAuth Scope as described in Use a Microsoft Entra ID service principal. Otherwise, leave both fields at their defaults.

  6. Select Connect.

Your Databricks connection has now been added and is available for use in UiPath Studio or Studio Web.

Use a Microsoft Entra ID service principal​

If you authenticate with a Microsoft Entra ID service principal instead of a Databricks OAuth service principal, change OAuth Token URL and OAuth Scope as follows:

  1. Replace the OAuth Token URL entirely with the Microsoft identity platform token endpoint:

    https://login.microsoftonline.com/{your-azure-tenant-guid}/oauth2/v2.0/token
    https://login.microsoftonline.com/{your-azure-tenant-guid}/oauth2/v2.0/token
    
    重要提示:

    Substitute your literal Azure tenant GUID into the URL. Do not leave {your-azure-tenant-guid} as a placeholder.

  2. Set OAuth Scope to the Azure Databricks resource ID followed by /.default:

    2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default
    2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default
    
    备注:

    Unlike the tenant GUID in the token URL, this GUID is not a placeholder. 2ff814a6-3304-4ab8-85cb-cd0e6f879c1d is the fixed identifier for Azure Databricks across all Azure environments, so enter it exactly as shown.

For more information, see Get Microsoft Entra ID tokens manually and Authenticate with Microsoft Entra service principals in the Azure Databricks documentation.

备注:

The connection is only as capable as the service principal behind it. A connection can be created successfully and still fail at runtime if the service principal lacks permissions on the object an activity targets.

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新