Rayfin

Fabric apps

Understand the Fabric App (preview) item Rayfin deploys into, including services, permissions, capacity, and portal creation.

A Fabric app is the managed Microsoft Fabric item that hosts a Rayfin project. In the Fabric portal, create it with New item → App (preview).

What a Fabric app contains

Servicerayfin.yml keyStatusWhat it provides
Authservices.authGASession issuing and Microsoft Entra ID through Fabric SSO.
Dataservices.dataGAGraphQL over the app's Fabric MSSQL database.
Static hostingservices.staticHostingGABuilt frontend assets served from the app origin.
Functionsservices.functionsGA since 1.36TypeScript server workflows. Changed in 1.36
Storageservices.storageExperimentalBlob storage when the storage feature is enabled. Experimental

Note

Functions are not available in every Fabric region or tenant.

Warning

Storage is experimental and not available in every Fabric region or tenant.

Capacity readiness

A Fabric app lives inside a Fabric workspace, and the workspace needs usable Fabric capacity. Rayfin 1.36 checks capacity during first deploys and can create a new workspace, start or reuse an eligible Fabric trial capacity, or assign a selected capacity when the user consents. New in 1.36

Pass --capacity-id <capacity-guid> to choose a capacity explicitly. Existing recorded deployments keep their current workspace capacity.

Prerequisites

Tenant setting

A Fabric tenant administrator must enable Fabric Apps (preview) before users can create Rayfin-hosted apps:

  1. Open the Fabric admin portal.
  2. Go to Tenant settings.
  3. Enable Fabric Apps (preview).
  4. Scope the setting to the whole organization or the security groups that should build apps.
  5. Click Apply.

Workspace capacity

The workspace that contains the App (preview) item must have usable Fabric capacity. If it does not, Rayfin 1.36 can prepare a workspace during first deploy, including trial-capacity readiness when the account and tenant are eligible. See Deploying with rayfin up.

Create an App (preview) item in the portal

  1. Open Microsoft Fabric.
  2. Select or create a workspace with Fabric capacity.
  3. Click New item.
  4. Search for App (preview) and create it.
  5. Open the item in VS Code, or deploy an existing local project with npx rayfin up.

The CLI can also create the item during first deploy. The Fabric item display name defaults to id in rayfin.yml; use --item-name to override it for the deploy. New in 1.36

Child services

Rayfin provisions child services based on rayfin.yml. The portal can show these resources, but schema and settings are code-owned and should be changed through Rayfin commands.

Child serviceWhat it providesHow to update it
SQL DatabaseTables and indexes generated from decorated entities.Change entity code and run npx rayfin up or npx rayfin up db apply.
AuthenticationFabric brokered auth backed by Microsoft Entra ID.Update services.auth in rayfin.yml and redeploy.
Static contentBuilt HTML, CSS, JavaScript, and assets.Run npx rayfin up or npx rayfin up staticapp deploy.
FunctionsServer-side TypeScript functions when enabled.Run npx rayfin up or npx rayfin up functions deploy.

Rayfin endpoint and app URL

Each Fabric app has a Rayfin backend endpoint used by the SDK and, when static hosting is enabled, a hosting URL used by browsers. rayfin up status --json reports the recorded hosting URL as deployment.hostingUrl.

RouteUsed for
/apiBackend API routes, including auth helpers.
/graphqlData API queries and mutations.
/functions/<name>/invokeFunction invocation through the deployed backend.
/connectors and /connector-invokeConnector metadata and invocation.

Permissions

PermissionWhat it allows
Workspace Viewer plus item Run and interactOpen and use the deployed app.
Workspace Contributor or AdminDeploy with rayfin up, apply schema changes, and update settings.
Workspace AdminAssign workspace capacity and reshare access.
PromptCreate or target a Fabric app
Help me deploy this Rayfin project into Microsoft Fabric. If rayfin/.deployments.json has a recorded deployment, reuse it. Otherwise, target the Fabric workspace I provide or help me choose one, ensure the workspace has usable capacity, and run `npx rayfin up`. Use the portal item name App (preview) when describing manual steps.

Next steps

Something wrong on this page?Report an issueEdit this page

On this page