Fabric Apps: from a semantic model to a working app
Fabric Apps, generally available since 17 November 2026, let you build a web app on Fabric data. Create the project with the Rayfin CLI and its dataapp template, add your semantic model as a fabric-semanticmodel connector, build the screens, and deploy with rayfin up. Users sign in with Fabric and need access to the model.
Data engineers · ·
The problem
You have a Power BI semantic model that people trust. Now someone wants more than a report can give: their own screens, buttons, an app that looks like your product, with Fabric sign-in. You are an analyst or a data engineer, not a full-stack developer. This Pattern shows the route from the model to a deployed app with the Rayfin CLI, and the permission that makes the app open but return nothing.
What is generally available and what is not
Status is stated per feature, because it differs.
| Part | Status | Where it comes from |
|---|---|---|
| Fabric Apps and the Rayfin SDK | Generally available since 17 November 2026 | Microsoft’s announcement “Build governed data apps with Microsoft Fabric Apps (Generally Available)” (Fabric Updates blog) |
| Anonymous data access | Preview | The What’s new page, preview table, row “Anonymous data access for Fabric Apps (Preview)” |
| Power BI Desktop for Apps | Preview | Its documentation page |
The What’s new page on Microsoft Learn still listed the apps backend, functions and connectors as preview when checked on 2026-11-29. It lags the announcement, so this article follows the announcement and says so. If you read two sources that disagree, check the date of each.
Steps
The path from model to app, with the CLI command for each step.
The commands below follow the help for @microsoft/rayfin-cli 2.0.1. The documentation writes them as npx rayfin ...; if the CLI is not installed in your folder, use npx @microsoft/rayfin-cli@2.0.1 ....
-
Check the prerequisites. Per Microsoft’s template page: current Node.js, a workspace role of Contributor, Member or Admin, Build and Read permission on the semantic model, and the tenant setting “Semantic Model Execute Queries REST API” enabled. A tenant admin enables the “Fabric Apps” tenant setting. Fabric (Free) alone cannot create apps; creating needs a Power BI Pro licence with limits, or a Fabric capacity or trial (licensing page).
-
Sign in.
npx rayfin login npx rayfin login statusThe second command shows your current sign-in. Add
--tenant <tenant-id>if your account spans several tenants. -
Create the project from the data app template. The template’s name,
dataapp, appears in the CLI’s own template list.npm create @microsoft/rayfin@latest -- "my-sales-app" --template dataapp --workspace "<workspace-name>" cd my-sales-appnpx rayfin init my-sales-app --template dataapp --workspace "<workspace-name>"takes the same options. -
Find the semantic model.
npx rayfin connector search --workspace-id <workspace-id> --type fabric-semanticmodel --json--typeis required together with--workspace-id. The output includes the item ID you need next. -
Look inside the model before writing any query. With
connector inspectyou list the entities the connector exposes, so nobody has to guess table and column names.npx rayfin connector inspect --workspace-id <workspace-id> --item-id <model-id> --type fabric-semanticmodel -
Add the model as a connector.
npx rayfin connector add --type fabric-semanticmodel --workspace-id <workspace-id> --item-id <model-id> --name salesModel --operations executeQuery--operationslimits what the app may do to the listed operations. The CLI help only givesread,createas an example;executeQueryis the operation Microsoft’s template page uses for semantic models. It comes from that page and the help does not confirm it. The semantic model connector supports delegated authentication only, which means each user’s own permissions apply (connectors page). -
Build the screens. Write them yourself or with a coding agent.
npx rayfin init ai-files install(listed in the CLI help of 2.0.1, not in a docs page) adds or refreshes the agent instruction files (AGENTS.md,.mcp.json,.agents/skills/) in the project. A starting prompt is below. -
Deploy. Validate first, then deploy, then read the status.
npx rayfin up --dry-run npx rayfin up npx rayfin up status--dry-runvalidates local inputs and resolves the workspace without deploying. Add--workspace "<name>"or--workspace-id <id>to choose the target; without them the CLI uses “My Workspace”. -
Share the app and the model. Use the Share button in the Fabric portal. Recipients need the “Run and interact” permission on the app and, as the dialog below shows, access to the related semantic model.

Image: Microsoft, share-related-items.png, CC BY 4.0, original size. Source, licence.
The project
rayfin-command-check is a small Python project that needs no Fabric tenant. It runs --help for every command used in this article and reports OK or MISSING for each option the article relies on. Run it again whenever a new CLI version comes out.
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python check_commands.py && python -m pytest -v
The recorded run (full output in RUN_LOG.txt inside the project) listed 10 commands, all OK, and 4 tests passed. It proves that commands and options exist in the help of version 2.0.1, not that they work in your tenant.
Copy this prompt
Use this when you want to build a Fabric app around your own semantic model. Paste it into the coding assistant working in your Rayfin project and supply the connector name and the question each screen should answer. Ask for screens that use the model’s existing tables and measures, along with the build result.
Build an analytical Fabric app on the existing <connector name> connector.
Before editing: read the repository instructions and skills, and read the
connector's schema file under rayfin/connectors/. Inspect the semantic model's
tables and measures before writing any DAX. Do not guess table, measure or
column names.
Screens: <list the screens and the question each one answers>.
Include loading, empty and error states. If a query fails, show the error;
never replace it with mock data. Keep secrets out of frontend code.
Run the project's build and report the result.
Check the answer for invented column names, hard-coded sample data, and any key or token in the frontend code.
Test result
The Rayfin 2.0.1 checker verified the template, connector type and options against the CLI help. Run the downloadable project to repeat those checks.
Limits
- Microsoft says apps might not suit complex multi-step transactions or stored procedures, nor sign-in providers other than Fabric SSO.
- Sharing the app does not share the semantic model. The app opens and its queries fail until the recipient has access to the model.
- TypeScript types on the client are not a security boundary. Restrict what the app can do with the connector’s
--operationsand with roles and row policies on the data side. - Never put secrets in frontend assets.
- With a Power BI Pro licence, apps are created on Microsoft-managed capacity with limits listed on the licensing page, such as no Rayfin functions and no file storage. Check that page for the current list.
- Cost in capacity units for a small app is not documented as a figure; none is given here.
Sources
- Microsoft Fabric Apps overview, accessed 2026-11-29
- Build a data app from a template, accessed 2026-11-29
- Fabric Apps connectors, accessed 2026-11-29
- Share a Fabric app, accessed 2026-11-29
- Fabric Apps licensing, accessed 2026-11-29
- What’s new in Microsoft Fabric, accessed 2026-11-29
- Power BI Desktop for Apps overview, accessed 2026-11-29
- Build governed data apps with Microsoft Fabric Apps (Generally Available), Fabric Updates blog, 17 November 2026
- @microsoft/rayfin-cli on npm, CLI help read 2026-11-29
Author
Rodrigo Lombana Reina, data engineer. Personal opinions. Checked against the documentation on 2026-11-29.
Questions
How do I build an app on a Power BI semantic model with Fabric Apps?
Create the project with the Rayfin CLI 2.0.1 using the dataapp template, then add the semantic model as a fabric-semanticmodel connector with rayfin connector add. Build the screens yourself or with a coding agent, and deploy with rayfin up. Users sign in with Fabric. The steps section lists each command; none was run against a tenant.
Are Fabric Apps generally available?
Yes, per Microsoft's announcement of 17 November 2026. Some parts are still preview: Microsoft lists anonymous data access as preview, and the Power BI Desktop for Apps documentation says preview. The What's new page on Microsoft Learn still showed the apps as preview when checked on 2026-11-29, so it lags the announcement.
Why does my Fabric App open but its queries fail?
Sharing the app does not share the semantic model behind it. Per Microsoft's sharing page for Fabric Apps, give recipients access to the related semantic model too, because the semantic model connector runs each query with the signed-in user's own permissions. Until they have that access, the app opens and every query fails.
What do I need before creating a Fabric App?
Per Microsoft's template page: current Node.js, a workspace role of Contributor, Member or Admin, Build and Read permission on the semantic model, and the tenant setting Semantic Model Execute Queries REST API enabled. A tenant admin enables the Fabric Apps tenant setting. Fabric Free alone cannot create apps; you need a Power BI Pro licence, with limits, or a Fabric capacity or trial.
Do I need a coding agent to build the screens?
No. The dataapp template is designed to work with a coding agent, and the Rayfin CLI 2.0.1 can install agent instruction files in the project with rayfin init ai-files install (listed in the CLI help), but you can write the screens yourself. If you use an agent, tell it to inspect the model first and never to guess table or column names.
Is a Fabric App with a semantic model connector secure by default?
Partly. The semantic model connector supports delegated authentication only, so each user's own permissions apply. TypeScript types on the client are not a security boundary: limit what the app may do with the connector's operations option, and use roles and row policies on the data side. Never put secrets in frontend assets.
When should I build a Fabric App instead of a Power BI report?
Build an app when people need their own screens, buttons and a product-like experience with Fabric sign-in, more than a report gives. Microsoft says apps might not suit complex multi-step transactions, stored procedures or sign-in providers other than Fabric SSO. For standard analysis a report is enough. The article's problem section frames the choice.
Which Rayfin CLI version does this article cover?
It follows @microsoft/rayfin-cli 2.0.1, the npm latest tag, built on 17 November 2026. A preview tag, 2.1.0, and an experimental tag also exist, and their flags may differ. Only the help output of 2.0.1 was read and checked by a small script; no command was run against a Fabric tenant.
