Skip to main content
Version: 0.4 (Latest)

Microsoft Fabric Publishing

LakeXpress creates Microsoft Fabric Lakehouse tables from exported Parquet files. Query data in Fabric using SQL, Spark, or Power BI via managed Delta tables or SQL analytics views.

Note: LakeXpress supports two distinct Fabric publish targets, selected by the credential's fabric_target field: "lakehouse" (Delta tables / OneLake, covered by this page) and the Fabric Warehouse (T-SQL) target, which is used whenever fabric_target is omitted or set to anything else. Make sure your credentials.json sets "fabric_target": "lakehouse" explicitly if you want the behavior documented here.

Prerequisites​

1. Microsoft Fabric Setup​

Required Resources:

  • Microsoft Fabric workspace with a Lakehouse
  • Service Principal with appropriate permissions
  • OneLake storage access

Required Permissions:

  • Workspace: Member or Contributor role
  • Lakehouse: Read and Write access
  • OneLake: Storage Blob Data Contributor

2. Azure AD App Registration​

Create a Service Principal:

  1. Azure Portal > Azure Active Directory > App registrations
  2. Click New registration
  3. Name the app (e.g., "LakeXpress-Fabric")
  4. Select Accounts in this organizational directory only
  5. Click Register
  6. Note the Application (client) ID and Directory (tenant) ID
  7. Go to Certificates & secrets > New client secret
  8. Create a secret and save the Value (shown only once)

3. Grant Fabric Permissions​

Add the Service Principal to your workspace:

  1. Open your Fabric workspace
  2. Click Manage access
  3. Click Add people or groups
  4. Search for your Service Principal
  5. Assign Member or Contributor role
  6. Click Add

4. Find Fabric Configuration Values​

Workspace ID and Lakehouse ID:

  1. Open your Lakehouse in the Fabric portal
  2. Extract from the URL:
    https://app.fabric.microsoft.com/groups/{workspace_id}/lakehouses/{lakehouse_id}
  3. Copy workspace_id (GUID after /groups/)
  4. Copy lakehouse_id (GUID after /lakehouses/)

Lakehouse Name:

The display name shown in the Fabric portal.

SQL Analytics Endpoint:

  1. In your Lakehouse, click SQL analytics endpoint in the bottom pane
  2. Click Copy SQL connection string
  3. Extract the hostname (e.g., abc123xyz.datawarehouse.fabric.microsoft.com)

5. Credentials Configuration​

Both OneLake storage and Fabric publishing credentials go in credentials.json:

{
"onelake_01": {
"ds_type": "onelake",
"auth_mode": "service_principal",
"info": {
"directory": "onelake://your-workspace-name/your-lakehouse-name/",
"azure_client_id": "your-application-client-id",
"azure_tenant_id": "your-directory-tenant-id",
"azure_client_secret": "your-client-secret"
}
},
"fabric_lakehouse": {
"ds_type": "fabric",
"auth_mode": "service_principal",
"fabric_target": "lakehouse",
"info": {
"workspace_id": "your-workspace-id",
"lakehouse_id": "your-lakehouse-id",
"lakehouse_name": "your-lakehouse-name",
"sql_endpoint": "your-sql-endpoint.datawarehouse.fabric.microsoft.com",
"azure_client_id": "your-application-client-id",
"azure_tenant_id": "your-directory-tenant-id",
"azure_client_secret": "your-client-secret"
}
}
}

Configuration Fields:

FieldDescriptionRequired
ds_typeMust be "fabric"Yes
auth_modeMust be "service_principal"Yes
fabric_targetSet to "lakehouse" to use the Lakehouse (Delta tables / OneLake) publisher documented on this pageNo -- if omitted (or set to anything other than "lakehouse"), LakeXpress instead targets a Fabric Warehouse (T-SQL) publisher, which is not covered by this page
workspace_idFabric workspace GUIDYes
lakehouse_idLakehouse GUIDYes
lakehouse_nameLakehouse display nameYes
sql_endpointSQL analytics endpoint hostnameYes
azure_client_idApplication (client) IDYes
azure_tenant_idDirectory (tenant) IDYes
azure_client_secretClient secret valueYes

Authentication Setup​

Fabric authenticates via Service Principal (Azure AD).

Service Principal Authentication​

{
"fabric_lakehouse": {
"ds_type": "fabric",
"auth_mode": "service_principal",
"fabric_target": "lakehouse",
"info": {
"workspace_id": "your-workspace-id",
"lakehouse_id": "your-lakehouse-id",
"lakehouse_name": "your-lakehouse-name",
"sql_endpoint": "your-sql-endpoint.datawarehouse.fabric.microsoft.com",
"azure_client_id": "your-application-client-id",
"azure_tenant_id": "your-directory-tenant-id",
"azure_client_secret": "your-client-secret"
}
}
}

OneLake Directory Format​

The OneLake directory must match your Fabric workspace and Lakehouse:

onelake://workspace-name/lakehouse-name/

Or using the Files path:

onelake://workspace-name/lakehouse-name.Lakehouse/Files/

Table Types​

LakeXpress supports two Fabric Lakehouse table modes.

Delta tables in the Lakehouse Tables section. Data is converted to Delta Lake format with ACID transactions, time travel, and automatic SQL analytics endpoint availability.

  • Full Delta Lake features (time travel, ACID, versioning)
  • Optimized query performance
  • Native Power BI integration
  • Best for production workloads

Options for config create:

--publish_target fabric_lakehouse
--publish_method internal

External Tables (SQL Analytics Views)​

SQL views referencing Parquet files in the Files section. Data stays as Parquet; queries read files directly. Available via the SQL analytics endpoint only.

  • No data conversion overhead
  • Available immediately after export
  • Suited for exploration and ad-hoc analysis
  • Preserves original Parquet format

Options for config create:

--publish_target fabric_lakehouse
--publish_method external

Configuration Options​

OptionDescriptionDefault
--publish_target IDCredential ID for Fabric target (required)-
--publish_method METHODinternal (Delta tables, recommended) or external (SQL views)external
--publish_schema_pattern PATTERNNot applicable for the Lakehouse target -- the Lakehouse has a flat namespace, so schema and table are combined via --publish_table_pattern-
--publish_table_pattern PATTERNTable naming pattern. The Lakehouse namespace is flat: with several source schemas, include {schema} (e.g. {schema}_{table}) so tables with the same name do not collide. To publish views next to tables of the same name, use e.g. VW_{schema}_{table}{table}
--n_jobs NParallel workers for table creation1

Dynamic Naming Patterns​

Table names support token-based patterns.

Supported Tokens​

TokenDescriptionExample Output
{schema}Source schema nametpch_1
{table}Source table namecustomer
{database}Source database nametpch
{date}Current date (YYYYMMDD)20251210
{timestamp}Current timestamp (YYYYMMDD_HHMMSS)20251210_143022
{uuid}UUID4 (consistent per run)a1b2c3d4-...
{subpath}CLI --sub_path parameterstaging

Common Patterns​

Prefixed Tables
--publish_table_pattern "src_{schema}_{table}"
--publish_target fabric_lakehouse
--publish_method internal

# Result: src_tpch_1_customer, src_tpch_1_orders
Schema-Based Naming
--publish_table_pattern "{schema}_{table}"
--publish_target fabric_lakehouse
--publish_method internal

# Result: tpch_1_customer, tpch_1_orders
Date-Stamped Tables
--publish_table_pattern "{table}_{date}"
--publish_target fabric_lakehouse
--publish_method internal

# Result: customer_20251210, orders_20251210
SQL Views with Prefix
--publish_table_pattern "VW_{schema}_{table}"
--publish_target fabric_lakehouse
--publish_method external

# Result: VW_tpch_1_customer, VW_tpch_1_orders

Usage Examples​

Ready-to-run commands for Microsoft Fabric are in Examples & Recipes: Microsoft Fabric.

See Also​

Copyright © 2026 Architecture & Performance.