AI Central

Fabric Integration Guide

Intended audience: Customer Azure administrators, platform administrators, implementation consultants Scope: Integration logic and configuration essentials for Microsoft Fabric as an Analytics data source Positioning: This document only covers the "data source integration" scenario, and does not involve vector database solutions, nor does it expand on MCP preconfiguration capabilities


Applicable Scope and Version Boundaries

What is supported:

  • The platform connects to the customer's Microsoft Fabric SQL Endpoint / Warehouse as an Analytics data source: browse tables/views, sync metadata, preview data, and support analytical reporting.

  • The default and recommended authentication method is SSO (Entra ID OAuth, based on Service Principal); traditional username/password authentication is also retained as a compatibility option.

  • SSO supports two token management modes:

    • Zero-Trust (default): Only short-lived access tokens are stored; refresh tokens are not persisted. Once the token expires, authorization must be completed again.

    • Token-Refresh: The complete MSAL token cache (including refresh tokens) is persisted, supporting silent refresh and reducing the frequency of manual reauthorization.

What is not supported:

  • This document does not cover Fabric as a vector storage solution for knowledge bases (if such requirements exist, refer to separate vector database documentation).

  • It does not expand on Fabric-related MCP (Model Context Protocol) preconfiguration capabilities, which belong to another independent capability domain.

  • Fabric data sources do not use port configuration (Fabric SQL Endpoint uses the HTTPS protocol layer and does not require an additional port).

  • The platform is not responsible for creating Fabric workspaces (Workspace), Warehouse/Lakehouse resources, or assigning permissions; these must be completed by administrators.


Prerequisites Checklist

Category

Prerequisites

Permissions

Entra ID must have permission to register applications (service principals); the service principal must be granted access to the target Workspace/Warehouse in the Fabric admin center (such as Viewer/Contributor, depending on the Fabric permission model, configured by the Fabric administrator).

Account

Client ID / Client Secret / Tenant ID (the three key elements of a service principal); no additional username/password is required in SSO mode.

Network

The platform server must be able to access the Fabric SQL Endpoint (such as <workspace>.fabric.microsoft.com or <warehouse>-<id>.datawarehouse.fabric.microsoft.com) and the Entra ID login endpoint.

Resource Preparation

The target Warehouse/Lakehouse name (corresponding to the database field); confirm that the platform deployment environment has correctly configured OAuth callback environment variables such as FABRIC_REDIRECT_URI.

⚠️ To Confirm

The exact permission scope of the service principal on the Fabric side (whether it covers read access to the target Warehouse); whether Token-Refresh mode is needed to reduce repeated authorization.


Key Azure-Side Configuration Points

  1. Register the service principal: In Azure Portal → Entra ID → App registrations, create an application and record the Client ID and Tenant ID.

  2. Create a Client Secret: In the application's "Certificates & secrets", create a secret and securely save the secret value.

  3. Authorize on the Fabric side: In the Fabric admin center (or the access settings of the target Workspace), add the service principal as a Workspace member and grant the permissions required to access the target Warehouse/Lakehouse.

  4. Confirm the SQL Endpoint address: In the Fabric Workspace, view the SQL Endpoint connection string of the Warehouse/Lakehouse, in the form of <workspace>.fabric.microsoft.com or <warehouse>-<id>.datawarehouse.fabric.microsoft.com.

  5. Confirm whether the tenant allows service principals to access Fabric: In some tenants, service principal access to the Fabric API may be disabled by default. Administrators need to enable the relevant option such as "Service principals can use Fabric APIs" in Fabric tenant settings.


Key Platform-Side Entry Points

Field Name

Required

Description

Host

Fabric SQL Endpoint / Warehouse server address, for example <workspace>.fabric.microsoft.com

Database Name

The name of the target Warehouse or Lakehouse

Auth Type

Select sso (recommended) for OAuth service principal authentication, or password (legacy compatibility mode) for username/password

Client ID

Required under SSO

The Client ID (Application ID) of the Entra service principal

Tenant ID

Required under SSO

Azure AD tenant ID (Directory ID)

Client Secret / Password

In SSO mode, enter the Client Secret; in password mode, enter the user password. The platform stores both with RSA encryption

Mode

Optional

zero_trust (default, requires reauthorization after token expiration) or token_refresh (supports automatic refresh, recommended for long-term use)

Username

Required in password mode

Not required in SSO mode

Schema

Optional

Database schema name; if left blank, the default schema is used

Port

Not used

Fabric does not require port configuration

Entry and authorization process:

  1. Fill in the connection information on the left side (Host, Database Name, Client ID, Tenant ID).

  2. Fill in the authentication information on the right side (Client Secret, Auth Type, Mode).

  3. Click "Authenticate" (the Authenticate button), and the system redirects to the Microsoft login page.

  4. The customer's Azure administrator completes login and consent authorization, Microsoft completes the callback token exchange, and the data source status is updated to "Authorized".

  5. After successful authorization, click "Test Connection" to verify availability.


Detailed Operation Guide

Go to the data source creation page

  1. In the Data interface, find the data source entry

  2. Click the "Create Data Source" or "New Data Source" button

  3. In the pop-up dialog for selecting the data source type, choose Fabric

https://docs.serviceme.com/en/assets/images/%E8%BF%9E%E6%8E%A5Fabric-1-5ad2daa7da8ecb59cddba3262dc803f0.png
https://docs.serviceme.com/en/assets/images/%E8%BF%9E%E6%8E%A5Fabric-2-7bffc8b87e720bd82641f697f8a8b24e.png

Fill in the basic connection information

Fill in the following required fields in the left-side form:

Host*

  • Enter the SQL Endpoint address of the Fabric service

  • Example: <workspace>.fabric.microsoft.com or <warehouse>-<id>.datawarehouse.fabric.microsoft.com

Database Name*

  • Enter the Warehouse name

  • Ensure that the Warehouse already exists in the Fabric instance

Client ID*

  • Enter the Client ID of the Azure AD application (service principal)

  • This information can be found in App registrations in Azure Portal

Schema

  • (Optional) Enter the database schema name

  • If not specified, the default schema will be used

https://docs.serviceme.com/en/assets/images/%E8%BF%9E%E6%8E%A5Fabric-3-0780d5dc83735fa4e1f6e9d5ca87e2fb.png

Fill in the authentication information

Fill in the following required fields in the right-side form:

Client Secret*

  • Enter the client secret of the Azure AD application

  • Note: This secret is time-limited, so make sure it has not expired

  • Important: Keep this secret secure and do not disclose it

Tenant ID*

  • Enter the Azure AD tenant ID (Directory ID)

  • This can be found in the Azure Active Directory overview in Azure Portal

Auth Type*

  • Select sso (recommended) for OAuth authentication based on a service principal

  • Optionally select password as a legacy compatibility mode (not recommended)

Mode

  • zero_trust (default): Does not persist refresh tokens; reauthorization is required after the access token expires

  • token_refresh: Persists the complete MSAL cache, supports silent refresh, and reduces the frequency of reauthorization

Auto Refresh Token

  • Enabling this option allows automatic refresh of access tokens

  • Recommended to enable, to ensure that long-running queries do not fail due to token expiration

https://docs.serviceme.com/en/assets/images/%E8%BF%9E%E6%8E%A5Fabric-3-0780d5dc83735fa4e1f6e9d5ca87e2fb.png

Verify the connection

  1. Confirm that all required fields (marked with *) have been filled in correctly

  2. Click the "Authenticate" button at the bottom of the page

  3. The system will automatically redirect to the Microsoft account login page

  4. Use an account with Fabric permissions to complete login and authorization

  5. After successful login, the data source status is updated to "Authorized", and the Fabric data source is successfully connected

https://docs.serviceme.com/en/assets/images/%E8%BF%9E%E6%8E%A5Fabric-4-5dbdd96912103a1a5b0bce373761cfee.png

Testing and validation

After authorization is completed, verify connection availability by following these steps:

  1. Click "Test Connection"; the system will discover and list visible tables and views

  2. Perform "Sync Table Schema" on at least one key table to verify field information

  3. Perform "Data Preview" on that table to confirm that data can be retrieved normally

  4. If using Token-Refresh mode, it is recommended to initiate another query after some time to verify whether silent refresh is working

Common Issues and Troubleshooting Paths

Issue Category

Symptom

Possible Cause

Troubleshooting Suggestion

Authentication failure / token expired

Prompt says "Unable to obtain Fabric access token, please reauthorize the data source through OAuth"

In Zero-Trust mode, the access token has expired; in Token-Refresh mode, the refresh token is invalid or silent refresh failed

Re-execute the OAuth authorization process; if this occurs frequently, consider switching to Token-Refresh mode

Authentication not completed

Prompt says "The data source has not yet been successfully authenticated, please complete the authentication process first"

OAuth authorization has not been completed, or the authorization status was reset

The administrator should complete one authorization login

Missing SSO parameters

An error related to "SSO authentication not configured" appears when initiating authorization

auth_type is not set to sso, or client_id / tenant_id is not filled in

Check and complete others.auth_type=sso and client_id / tenant_id; store client_secret in the password field

Endpoint / connection timeout

Test connection has no response for a long time or times out

Incorrect SQL Endpoint address; network policy restrictions; Fabric Workspace/Warehouse is not in an available state

Verify the SQL Endpoint address; check outbound network policies; confirm that the Warehouse/Lakehouse status is normal

Insufficient permissions

Test connection succeeds but the table/view list is empty, or queries return permission errors

The service principal has not been granted access to the Workspace/Warehouse

Ask the Fabric administrator to add the service principal in Workspace permission settings and grant the appropriate role

Microsoft-side authentication error (AADSTS series)

Authorization callback returns error=AADSTSxxxxxx

Incorrect Client ID/Secret, tenant policy restrictions, service principal disabled, etc.

Based on the specific AADSTS error code, verify the application status and tenant policies in Azure Portal (for example, whether Conditional Access policies are blocking service principal login)

General connection failure

Reports "Data source connection failed"

Network timeout, temporary Fabric service unavailability, driver exception

Retry later; check the Fabric service status page; if necessary, contact the network/security team for troubleshooting