dbt Cloud makes it simple to orchestrate and manage your analytics workflows. In this guide, weβll walk through configuring Microsoft Fabric Warehouse as a connection in dbt Cloud using a Service Principal for secure authentication.
I will also include all prerequisites, step-by-step instructions, and screenshots to make the setup seamless.
β Prerequisites
Before starting, make sure you have:
- A Microsoft Fabric account with admin permissions.
- Access to the Azure portal with permissions to register applications and create secrets.
- A dbt Cloud account (Team or Enterprise plan) with Orchestration enabled.
π Step 1: Register an Application & Add Service Principal
- Log in to the Azure Portal.
- In the navigation menu, select Microsoft Entra ID (formerly Azure Active Directory).
- Go to App registrations β + New registration.

4. Enter a Name for your application.

- Under Supported account types, select: Accounts in this organizational directory only
- Click Register.
π Make a note of:
- In theΒ Supported account typesΒ section, selectΒ Accounts in this organisational directory onlyΒ and clickΒ Register.
- Make a note of theΒ Application (client) IDΒ andΒ Directory (tenant) ID These values will be needed in dbt Cloud.

π Step 2: Create a Client Secret
- Open the application you registered in Step 1.
- From the left menu, select Certificates & secrets β + New client secret.
- Provide a Description and select an Expiry period.
- Click Add.


π Copy and save the client secret value. You will not be able to view it again later.

π’ Step 3: Enable Service Principal in Microsoft Fabric
- Log in to your Microsoft Fabric account.
- Click the Settings (βοΈ) icon in the top right.
- Under Governance and Insights β Admin portal.
- Navigate to Tenant settings.
- Under Developer settings, set: Service principals can use Fabric APIs β ON

Under OneLake settings, set: Users can access data stored in OneLake with apps external to Fabric β ON

π Step 4: Create a Workspace & Add Service Principal
- From the Fabric navigation menu, go to Workspaces β + New workspace.
- Enter a Name and click Apply.
- Select your new workspace β Manage Access.
- Click + Add people or groups.
- Add the Service Principal created in Step 1.
- Assign the role Contributor.

π Step 5: Create a Lakehouse or Warehouse
- In Fabric, click Create β Lakehouse or Warehouse (depending on your use case).
- Provide a unique name and click Create
- Retrieve the SQL endpoint for Lakehouse/Warehouse we use in dbt setup

βοΈ Step 6: Configure dbt Cloud Environment
Now letβs connect Fabric to dbt Cloud.
In dbt Cloud, go to Settings β Connections β Connection settings
- Type:
fabric - Settings:
- Server: SQL endpoint from step 5
- port : 1433
- Database: <fabric>

- In dbt Cloud, go to Orchestration β Environments β + New Environment.
- Environment name:
fabric-dbt - Environment type:
Deployment - Deployment type:
STGorPRODas needed - dbt version:
Latest
- Environment name:

2. Scroll down to Connection settings:
- Connection: Fabric
- Authentication: Service Principal
- Tenant ID β (from Step 1)
- Client ID β (from Step 1)
- Client Secret β (from Step 2)
- Schema β
dbo(or your schema of choice)

- Click Test Connection.
- If successful, youβll see: β COMPLETE β Your test completed successfully, youβre good to go!
- Click Save.
Your dbt Cloud environment is now fully connected to Microsoft Fabric Warehouse using a Service Principal.
π Wrap Up
Youβve successfully:
- Registered a Service Principal in Azure
- Enabled Fabric API & OneLake access
- Created a Workspace and Warehouse
- Configured dbt Cloud to connect securely using Service Principal
Now you can start building and orchestrating your dbt models on Microsoft Fabric Warehouse!

