Fabric Connection

Description

A Fabric Connection says how Hop signs in to Microsoft Fabric, through Microsoft Entra ID. The native Spark engine uses it for the cluster type Microsoft Fabric: Hop submits Livy batch jobs to a lakehouse and uploads the fat jar and the project package to the lakehouse files in OneLake with it.

The workspace and the lakehouse are not part of the connection: they are options of the Spark run configuration, so one connection serves several lakehouses.

Options

Option Description

Name

The name of the connection.

Description

What the connection is for.

Authentication

Application with a client secret: a Microsoft Entra application (service principal) signs in with its client secret. Suits servers and scheduled runs.

Azure sign-in of this machine: the environment variables (AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET), a managed identity, or the Azure CLI (az login), in that order.

Tenant id

The id of the Microsoft Entra tenant (directory) of the Fabric workspace. Optional with the Azure sign-in of this machine.

Client id

The application (client) id of the Entra application. With the Azure sign-in of this machine: the client id of a user-assigned managed identity, or empty.

Client secret

A client secret of the application. Not used with the Azure sign-in of this machine.

Test signs in and lists the workspaces the connection sees.

Permissions

The identity of the connection needs a Contributor (or higher) role on the workspace of the lakehouse: it submits batch jobs and writes the lakehouse files. For an application, a Fabric administrator also has to allow service principals to use the Fabric APIs (Developer settings in the admin portal).

Microsoft’s page on the Livy API says in one place that it does not accept service principals and in another how to sign in with one. When a batch is refused for an application, sign in as a user with the Azure sign-in of this machine (az login).