> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/analytics-monitoring/microsoft-fabric.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Microsoft Fabric

Microsoft Fabric is an analytics platform that includes Power BI. Manage workspaces, datasets, eventhouses and KQL databases, and run queries.

![Microsoft Fabric logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-655cff9bba895e7aef9bbecf128df0503916213a%2Fmicrosoft-fabric.png?alt=media)

|                    |                                                                                              |
| ------------------ | -------------------------------------------------------------------------------------------- |
| **Category**       | [Analytics and monitoring](https://docs.fastn.ai/connectors/catalog/analytics-monitoring.md) |
| **Website**        | [fabric.microsoft.com](https://fabric.microsoft.com)                                         |
| **Authentication** | OAuth 2.0                                                                                    |
| **Slug**           | `microsoftFabric`                                                                            |
| **On fastn.ai**    | [Embed Microsoft Fabric in your product](https://fastn.ai/integrations/microsoft-fabric)     |

## Setup

Your customers sign in to Microsoft Fabric through Fastn's own OAuth app, so nothing needs setting up first. To show your own app on the consent screen instead, add your OAuth app on the connector's **Auth** tab under **Manage providers**.

## Connect in Fastn

Your customers connect Microsoft Fabric from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Microsoft Fabric**.
2. Select **Connect** on the Microsoft Fabric card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Keep the **Default** auth provider, or choose your own OAuth app if you added one. Pick the **Scopes** you need, select **Authorize**, then sign in to Microsoft Fabric and approve access in the window that opens.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-0e2bbdd7109cec207402cf6883484b8525b7fbf5%2Fconnect-oauth.png?alt=media" alt="The Connect Salesforce dialog for OAuth 2.0 with the Default auth provider, an optional account name, the Scopes selector and an Authorize button"><figcaption><p>A connect form for OAuth 2.0. Salesforce is shown here.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Microsoft Fabric's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Rows</td><td><code>addRows</code></td><td>Appends data rows to a table inside a push dataset in the specified Power BI workspace. Power BI REST API (Push Datasets). Each row is a key-value object whose keys match the table's column names. Only push datasets accept rows, so point this only at a push dataset you own. Requires the Dataset.ReadWrite.All scope.</td></tr><tr><td>Create Dataset</td><td><code>createDataset</code></td><td>Creates a new push dataset in the specified Power BI workspace, defining its tables and columns up front. Power BI REST API (Push Datasets). Only push datasets can be created this way. Requires the Dataset.ReadWrite.All scope. The optional defaultRetentionPolicy query parameter is not exposed by this action.</td></tr><tr><td>Create Eventhouse</td><td><code>createEventHouse</code></td><td>Creates an eventhouse in the specified Fabric workspace. Fabric REST API. The workspace must sit on a supported Fabric capacity, and an eventhouse consumes billable capacity. The caller needs the contributor workspace role and the Eventhouse.ReadWrite.All or Item.ReadWrite.All scope.</td></tr><tr><td>Create KQL Database</td><td><code>createKQLDatabase</code></td><td>Creates a KQL database inside an existing eventhouse in the specified Fabric workspace. Fabric REST API. A ReadWrite database stores its own data in the parent eventhouse; a Shortcut database projects an existing Azure Data Explorer cluster or KQL database. The workspace must sit on a supported Fabric capacity. The caller needs the contributor workspace role and the KQLDatabase.ReadWrite.All or Item.ReadWrite.All scope.</td></tr><tr><td>Create Workspace</td><td><code>createGroup</code></td><td>Creates a new Power BI workspace (group) in the signed-in user's tenant. Power BI REST API. The workspaceV2 query parameter is always sent as True so that a modern (V2) workspace is created, which is required for Fabric items and embed tokens. Requires the Workspace.ReadWrite.All scope.</td></tr><tr><td>Delete Dataset</td><td><code>deleteDataset</code></td><td>Permanently deletes a dataset (semantic model) from the specified workspace. Power BI REST API. Reports built on the dataset stop working. Requires the Dataset.ReadWrite.All scope and the admin, member or contributor workspace role.</td></tr><tr><td>Delete Workspace</td><td><code>deleteGroup</code></td><td>Deletes the specified workspace (group) and all of its content. Power BI REST API. Requires the Workspace.ReadWrite.All scope and the admin workspace role.</td></tr><tr><td>Execute Dataset Queries</td><td><code>executeQueries</code></td><td>Runs a DAX query against a semantic model (dataset) in the specified workspace and returns the result rows. Power BI REST API. One query per call, up to 100,000 rows or 1,000,000 values; datasets hosted in Azure Analysis Services are not supported. The tenant setting that allows the Dataset Execute Queries REST API must be enabled. Requires the Dataset.ReadWrite.All or Dataset.Read.All scope.</td></tr><tr><td>Execute KQL Query</td><td><code>executeKqlQuery</code></td><td>Runs a Kusto Query Language query against a KQL database and returns the result tables. Kusto query endpoint (not the Fabric management API): the request goes straight to the cluster named by the Cluster Host input, which is the host name of the queryServiceUri returned by Get KQL Database or Get Eventhouse, so one action serves every cluster. Requires the KQLDatabase.Execute.All scope, and the token audience must be accepted by that Kusto endpoint.</td></tr><tr><td>Generate Embed Token</td><td><code>generateToken</code></td><td>Generates a Power BI embed token covering one or more reports, datasets and target workspaces, for the embed-for-your-customers scenario. Power BI REST API. At most 50 reports, 50 datasets and 50 target workspaces per call, and all of them must reside in V2 workspaces. Requires Dataset.Read.All or Dataset.ReadWrite.All, plus Report.Read.All or Report.ReadWrite.All when reports are supplied and Content.Create when target workspaces are supplied. The returned token is a credential - do not log or store it in plain text.</td></tr></tbody></table>

<details>

<summary>View 11 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Dataset</td><td><code>getDataset</code></td><td>Returns a single dataset (semantic model) from the specified Power BI workspace. Power BI REST API. The caller needs write permission on the dataset to see its full properties; read-only callers receive only the ID and name. Requires the Dataset.Read.All or Dataset.ReadWrite.All scope.</td></tr><tr><td>Get Eventhouse</td><td><code>getEventHouse</code></td><td>Returns the properties of a single eventhouse, including its Kusto query and ingestion service URIs and the IDs of the KQL databases it contains. Fabric REST API. Requires the Eventhouse.Read.All, Eventhouse.ReadWrite.All, Item.Read.All or Item.ReadWrite.All scope.</td></tr><tr><td>Get KQL Database</td><td><code>getKQLDatabase</code></td><td>Returns the properties of a single KQL database, including its parent eventhouse, database type and Kusto query and ingestion service URIs. Fabric REST API. The query service URI returned here is what the Execute KQL Query action targets. Requires the KQLDatabase.Read.All, KQLDatabase.ReadWrite.All, Item.Read.All or Item.ReadWrite.All scope.</td></tr><tr><td>Get KQL Database Creation Status</td><td><code>getKQLDatabaseCreationStatus</code></td><td>Returns the current state of a Fabric long-running operation, such as the provisioning of a KQL database or an eventhouse. Fabric REST API. Pass the operation ID taken from the x-ms-operation-id header of the 202 Accepted response that started the operation. Poll until the status is Succeeded or Failed. The scope required is the same as the scope required by the API that started the operation.</td></tr><tr><td>Get Workspace By ID</td><td><code>getGroupById</code></td><td>Returns the properties of a single workspace (group) by its ID. Fabric REST API - the Power BI REST API exposes no tenant-admin-free get-single-group route, so this action uses the Fabric Core Get Workspace endpoint, which addresses the same workspace object by the same ID. Requires the Workspace.Read.All or Workspace.ReadWrite.All scope.</td></tr><tr><td>List Datasets In Workspace</td><td><code>listDatasets</code></td><td>Returns the list of datasets (semantic models) in the specified Power BI workspace. Power BI REST API. The caller needs write permission on a dataset to see its full properties; read-only callers receive only the ID and name. Requires the Dataset.Read.All or Dataset.ReadWrite.All scope.</td></tr><tr><td>List Eventhouses</td><td><code>listEventHouses</code></td><td>Returns the eventhouses in the specified Fabric workspace, including each eventhouse's Kusto query and ingestion service URIs. Fabric REST API. Supports paging through the continuation token and filtering to a single folder. The caller needs at least the viewer workspace role and the Workspace.Read.All or Workspace.ReadWrite.All scope.</td></tr><tr><td>List KQL Databases</td><td><code>listKQLDatabases</code></td><td>Returns the KQL databases in the specified Fabric workspace, including each database's parent eventhouse and Kusto query and ingestion service URIs. Fabric REST API. Supports paging through the continuation token and filtering to a single folder. The caller needs at least the viewer workspace role and the Workspace.Read.All or Workspace.ReadWrite.All scope.</td></tr><tr><td>List Push Dataset Tables</td><td><code>listTables</code></td><td>Returns the tables of a push dataset in the specified workspace, including each table's name and, where exposed, its columns and measures. Power BI REST API. This call only supports push datasets. Requires the Dataset.ReadWrite.All or Dataset.Read.All scope.</td></tr><tr><td>List Workspaces</td><td><code>listGroups</code></td><td>Returns the list of Power BI workspaces (groups) the signed-in user has access to. Power BI REST API. Supports OData filtering and paging through the $filter, $top and $skip parameters. Requires the Workspace.Read.All or Workspace.ReadWrite.All scope.</td></tr><tr><td>Upsert Table</td><td><code>upsertTable</code></td><td>Replaces the metadata and schema of a table inside a push dataset in the specified Power BI workspace. Power BI REST API (Push Datasets). This is a full replacement: columns and measures omitted from the request are removed from the table and its existing rows are cleared, so point it only at a push dataset you own. Requires the Dataset.ReadWrite.All scope.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/analytics-monitoring/microsoft-fabric.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
