Microsoft Fabric
BInbox signs in to a Fabric warehouse or lakehouse SQL analytics endpoint with a Microsoft Entra access token, over TLS
1.2 or higher with the server’s certificate checked. Fabric takes no SQL logins. The server’s name must end in
.fabric.microsoft.com.
BInbox’s T-SQL for Fabric has been proven on a SQL Server but not yet on Fabric itself, so the first connection to a Fabric workspace is also a check of it. If the report passes but a query is refused, tell BInbox which query.
What you will paste into BInbox
Section titled “What you will paste into BInbox”On New connection, choose Microsoft Fabric.
| Field | What to enter |
|---|---|
| Server | The SQL connection string’s host, such as abc123.datawarehouse.fabric.microsoft.com. In Fabric, open the warehouse or lakehouse’s SQL analytics endpoint, then Settings, SQL endpoint, and copy the SQL connection string. |
| Database | The warehouse’s or lakehouse’s name. |
| Port | 1433 unless the service says otherwise. You may leave it empty. |
| How BInbox signs in | A service account’s user name and password or key file (the app registration’s client secret) or BInbox’s own identity, trusted by the warehouse (no secret kept). |
| Directory (tenant) id | From the app registration. |
| Application (client) id | From the app registration. |
| Client secret | From the app registration. Service account only. |
Step 1: make the app registration
Section titled “Step 1: make the app registration”Follow Set up a Microsoft Entra app registration and keep its three values.
Step 2: allow service principals in Fabric
Section titled “Step 2: allow service principals in Fabric”A Fabric administrator opens the Admin portal, Tenant settings, and turns on Service principals can use Fabric APIs. Apply the setting to a security group that holds the app rather than to the whole organization. These commands make the group and add the app to it:
az ad group create --display-name "BInbox Fabric" --mail-nickname binbox-fabricaz ad group member add --group "BInbox Fabric" --member-id $(az ad sp show --id <application id> --query id -o tsv)Step 3: give the app read access
Section titled “Step 3: give the app read access”In Fabric, open the workspace, Manage access, Add people or groups, search for the app registration’s name, and give it the Viewer role. To limit the app to one warehouse instead, share the warehouse with the app and give it the Read all data using SQL permission.
You can narrow what the app reads further in T-SQL, connected to the warehouse as an administrator:
GRANT SELECT ON SCHEMA::<schema> TO [BInbox reader];Least permissions
Section titled “Least permissions”| Grant | Why BInbox needs it |
|---|---|
| The tenant setting for service principals, for a group holding the app | To let the app sign in to Fabric. |
| Viewer on the workspace, or read on one warehouse | To list and read the tables. |
Do not give the app Contributor, Member or Admin on the workspace.
Check: the test-connection report
Section titled “Check: the test-connection report”Choose Test connection in BInbox. The first four permissions must be Granted, and the last is optional:
| Permission | Granted when |
|---|---|
| Sign in | Entra gives a token and Fabric accepts it over TLS. |
| List the schemas | The app may see at least one schema besides sys, INFORMATION_SCHEMA and guest. |
| Read at least one table | The app can read at least one table or view. |
| Run a query | A SELECT 1 runs. |
| Refuse a write, so SQL an author writes can run (optional) | BInbox first reads whether the app is in db_owner, db_datawriter or db_ddladmin, and whether it may delete from the first table it may read. If it may, the report says it could write, and no delete is sent. Otherwise the warehouse refuses a delete of no rows from the first table, DELETE FROM <table> WHERE 1 = 0, with error 229 (permission denied), inside a transaction that is rolled back. An app with read access to the warehouse only is refused. The test shows that one table refused, so the role is the control. Without this, authors still pick tables, but cannot write a dataset’s SQL. |
Add it in BInbox
Section titled “Add it in BInbox”An owner or admin opens the Data tab at app.binbox.ai, chooses Connect, then New connection, fills in the fields above, and chooses Test and save. Connections describes the screen.
Then an author sets up a dataset from one of the connection’s tables or views, as Pick a table describes.