--- title: "Microsoft Fabric tutorial" slug: "microsoft-fabric" updated: 2026-05-21T09:15:11Z published: 2026-05-21T09:15:11Z canonical: "docs.lobstersoftware.com/microsoft-fabric" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Microsoft Fabric tutorial > [!NOTE] > Last updated: 2026/05/20 # Connect to Microsoft Fabric from Lobster In this tutorial, you connect the Lobster Data Platform to a Microsoft Fabric Lakehouse or Warehouse using the Microsoft SQL Server JDBC driver and a service principal for authentication. When you're done, you'll have a working connection that lets you read data from a Lakehouse or read and write data to a Warehouse. > [!NOTE] > **Tip** > > You can also use this procedure to connect to any Microsoft SQL database in the Azure Cloud, including Dataverse. ## Prerequisites - Access to the [Azure portal](https://portal.azure.com/) - Access to the [Microsoft Fabric portal](https://app.fabric.microsoft.com/) - A Fabric workspace that contains an existing Lakehouse or Warehouse - Administrative access to your Lobster installation - The following library files (tested versions): - `mssql-jdbc-12.10.2.jre11.jar` (Microsoft SQL Server JDBC driver, [Download from Microsoft](https://learn.microsoft.com/en-us/sql/connect/jdbc/release-notes-for-the-jdbc-driver?view=sql-server-ver17#1210)) - `azure-identity-1.15.3.jar` - `oauth2-oidc-sdk-11.23.1.jar` - `msal4j-1.19.0.jar` - `content-type-2.3.jar` **NOTE:** Newer driver versions may require different dependencies. If so, check the release notes of the respective driver. ## Register an app in Microsoft Azure Create an app registration in Microsoft Entra ID. This app provides the service principal credentials that Lobster uses to authenticate with Fabric. 1. Sign in to the Microsoft [Azure portal](https://portal.azure.com/). On the home page, under **Azure services**, select the shortcut **App registrations**. ![Microsoft Azure app registrations page displaying owned applications and registration options.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/App registrations screen EN(1).png) 2. On the **App registrations** page, select **New registration**, enter a name for the app (for example, `Fabric_Connection`), and then select **Register**. 3. On the **Overview** page, copy the **Application (client) ID**. You'll need this value later. ![Display name and application ID for Fabric Connection in the essentials section.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-9LS9DBL3.png) 4. Select **Certificates & secrets** → **New client secret**. After you create the secret, copy the **Value** column (not the Secret ID). You'll need this value later. ![Client secrets section showing description, expiration date, and value for application identity.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-NYAR46LL.png) 5. Select **API permissions** → **Add a permission**, and then add the following permissions: ![API permissions overview for Microsoft Graph and Power BI Service applications.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-B3KE0WN3.png) - **Tenant.Read.All** - **Tenant.ReadWrite.All** You now have the two values that you require for the connection: the **Application (client) ID** and the **client secret** value. ## Grant workspace access in Microsoft Fabric Give your app permission to access the Fabric workspace that contains your Lakehouse or Warehouse. ### Add the app to your workspace 1. Sign in to the Microsoft [Fabric portal](https://app.fabric.microsoft.com/). 2. In the left navigation, select **Workspaces**. Next to your workspace, select the ellipsis (**…**), and then select **Workspace access**. ![Workspace menu in Microsoft Fabric showing options for managing workspaces and settings.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-ZJIX6AAK.png) 3. Search for the name of your app (for example, `Fabric_Connection`), and then add it. ![Manage access settings for Testworkspace, including adding people or groups.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-J104RRNC.png) 4. Set the role to **Admin** or **Contributor**. **NOTE:** The "Service Principal" is created automatically in the background after you add the app. ### Get the SQL analytics endpoint 1. Open the workspace that contains your Lakehouse or Warehouse. 2. Next to your Lakehouse or Warehouse, select the ellipsis (**…**), and then select **Settings**. ![File management interface showing options for workspace and item settings.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-4SNABD6C.png) 3. Under **SQL analytics endpoint**, copy the SQL connection string. ![SQL connection string for Power BI desktop and client tools displayed in Lakehouse workspace.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-MRWCAT6D.png) **NOTE:** The SQL connection string follows the pattern `<random-string>.datawarehouse.fabric.microsoft.com`. ## Configure the connection in Lobster Now that you have all the required values, you can configure the database connection in Lobster. ### Install the required libraries and drivers 1. Download the Microsoft SQL Server JDBC driver directly from Microsoft: [Download from Microsoft](https://learn.microsoft.com/en-us/sql/connect/jdbc/release-notes-for-the-jdbc-driver?view=sql-server-ver17#1210) 2. Download and extract the remaining four files and drivers using the link below. [](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/additional_libs.zip)additional_libs1.34 MB[](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/additional_libs.zip) 3. In the Lobster interface, go to **Configuration** → **Databases/Connectors**. 4. Select **Manage drivers**. 5. Upload the extracted `.jar` files and the driver by using drag and drop, or copy them directly to the `/extlib/` directory of your Lobster installation. ### Create the database connection 1. Go to **Configuration** → **Databases/Connectors**. 2. Add a new connection by selecting the **Plus** (+) button or by using the context menu. 3. Select **Load Template**, and then select **MS SQL (TLS enabled)**. ![Lobster Settings interface for database entry with options for alias and driver selection.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/LoadTemplateNEW.png) 4. Enter the connection values that you collected earlier: | Field | Value | | --- | --- | | **Alias** | Enter a name for the connection (for example, `ms_fabric_lakehouse_ro`). | | **Database** | Enter the SQL connection string from the Fabric portal. Replace `<your-endpoint>` with the endpoint from your connection string, and replace `<YourLakehouseOrWarehouse>` with the name of your Lakehouse or Warehouse. The port is `1433`. `jdbc:sqlserver://<your-endpoint>.datawarehouse.fabric.microsoft.com:1433;DatabaseName=<YourLakehouseOrWarehouse>;encrypt=true;trustServerCertificate=true` | | **Catalog Name** | Enter the name of your Lakehouse or Warehouse (for example, `TestworkspaceLakehouse`). | | **User** | Enter the **Application (client) ID** from your app registration. | | **Password** | Enter the **client secret Value** from your app registration. | It should look like this: ![Lobster: Database connection settings for ms_fabric_lakehouse_ro with user and SQL command details.](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-QQCDWZF7.png) 5. Select the **JDBC Properties** tab, and then add the authentication property from the table below. **IMPORTANT:** This property is required. If you don't add it, authentication fails. | Name | Value | | --- | --- | | `Authentication` | `ActiveDirectoryServicePrincipal` | 6. Save the connection, and then test it by using the **SQL Console** plug-in. You now have a working connection from Lobster to your Microsoft Fabric Lakehouse or Warehouse. --- ## Glossary **App registrations** Enable secure and controlled access to APIs and services by registering and configuring applications for authentication and authorization in Azure. **Fabric workspace** A container in Microsoft Fabric that organizes your data projects. A workspace can hold multiple Lakehouses and Warehouses. **Lakehouse** A data store in your workspace that is optimized for analytical workloads. Through the SQL endpoint, you can **read** data only. **Warehouse** A data store in your workspace that behaves like a traditional Azure SQL database. Through the SQL endpoint, you can **read and write** data. --- ## FAQ—Frequently asked questions ### Can I write to Lakehouse by using another method? Yes. You can write to a Lakehouse by using the GraphQL API. ### Can I use these libraries to connect to a standard Azure SQL database? Yes, if the database is cloud-hosted in Azure. You might need to configure additional settings in the Azure portal to allow external IP access. ### Are other authentication methods supported? Yes, but only `ActiveDirectoryServicePrincipal` has been tested with these libraries. ### Are there differences between Fabric SQL databases and Azure SQL databases? Yes. For current limitations, see [SQL database in Microsoft Fabric limitations](https://learn.microsoft.com/en-us/fabric/database/sql/limitations).