Fabricator

Publish to Microsoft Fabric

Publish your app to a Fabric workspace, choose whether chat turns publish it automatically, and manage the workspaces it's published to.

Publishing puts the app in your current project into a Fabric workspace, where the people you share it with can use it. Fabricator runs the project's own rayfin up, records the published app that Rayfin creates, and shows it in the preview. Earlier versions of Fabricator called this deploying.

Rayfin apps are published as Fabric apps in a Fabric workspace. For Rayfin's platform details, see Deploy Fabric apps. Publishing uses your Fabric capacity; see Rayfin pricing and capacity notes.

Your app runs on this computer while you build it, so you don't need to publish it to try it: publish it when you want other people to use it. Until you turn on Publish after each chat turn, your changes stay on this computer until you publish them. See Develop on this computer.

The Published apps panel for the Development published app: published 2 hours ago, with a green dot for live, its app address, its item ID, its workspace with region and capacity, the Fabric account that publishes, Publish after each chat turn turned off, and Publish to another workspace.

Sign in to Fabric

Fabricator publishes with the Rayfin CLI's Fabric sign-in. You can sign in from the account control in the top-right app bar:

  1. Select Sign in to Fabric.
  2. Finish the browser sign-in that Rayfin opens.
  3. Return to Fabricator and publish again if needed.

The workspace picker also prompts you when Fabricator needs Fabric credentials to list workspaces. If credentials expire, it may show "Sign in to Microsoft Fabric to list your workspaces."

You can stay signed in to more than one Fabric account, for example one per organization, and choose which one publishes. The Published apps panel names the account that publishes under Account, such as "alice@contoso.com · Contoso". Select Change to switch accounts. See Manage your accounts.

Publish for the first time

A new app runs on this computer from the start, so creating it doesn't publish it. Publish it from the app bar when you're ready, like a project you opened from a folder or cloned:

  1. Open the project.
  2. In the app bar, select Publish.
  3. In Publish to a Fabric workspace, enter a Name if you want one, such as Production.
  4. Under Publish to workspace, choose a Fabric workspace.
  5. Select Publish.

Above the form, "Publishes as" names the Fabric account that publishes. Select Change to use another.

Eligible workspaces are on a Fabric F-SKU capacity, a Power BI Premium P-SKU capacity, or a dedicated capacity whose SKU Fabricator cannot see. Workspaces without an eligible capacity are listed under Not eligible with the reason. If Fabricator cannot find an eligible workspace, it offers Start a free trial and Buy a capacity links.

When your apps already use some eligible workspaces, the list starts with up to five of them under Recent, the workspace of the app you published or opened most recently first. The rest follow under Other workspaces.

To create a workspace from Fabricator, select + New workspace, choose an active F-SKU or P-SKU capacity, enter a name, and select Create workspace. The new workspace uses the selected capacity's region.

With the Publish to Pro workspaces experiment turned on in Settings → Experiments, Pro workspaces, which have no Fabric or Power BI Premium capacity, are eligible too for an app on Rayfin 2.1.0 or later, including 2.1.0's alpha releases. They're listed with the other eligible workspaces, marked Pro, and + New workspace also offers No capacity (Pro workspace), which creates one. For an app on an earlier Rayfin version, Pro workspaces are listed under Not eligible, and the picker says "Pro workspaces need Rayfin 2.1.0 or later, and this app is on Rayfin 2.0.1. Update its Rayfin version to publish to one.", with the app's version. See Rayfin versions. My workspace isn't offered: it stays under Not eligible unless it's on an eligible capacity.

Pro workspaces don't support file storage or functions, and an app's data there must use PostgreSQL rather than MSSQL, Rayfin's default. When you choose a Pro workspace for an app that uses any of these, the picker says "Pro workspaces don’t support what this app uses, so publishing to one will likely fail:" and lists which of them the app uses: File storage, Functions or MSSQL data, which adds "Pro workspaces need PostgreSQL". Publish then reads Publish anyway: select it to publish there anyway. + New workspace shows the same warning when you choose No capacity (Pro workspace).

Fabric apps aren't available in every Fabric region yet. Fabricator doesn't guess from a list of regions: Fabric answers when you publish. If Fabric turns the app down in the workspace you chose, Fabricator says so and helps you choose another; see Fabric apps aren't available in the workspace.

Same-name warning

Before a first publish into a workspace, Fabricator checks whether that workspace already has a Rayfin app with the same item name from rayfin/rayfin.yml.

If it finds one, you see a warning that publishing there would replace that app, for example "Operations already has an app named “Contoso Expenses”. Publishing here would replace it, so pick another workspace." Choose another workspace, or select Replace it anyway to confirm.

Publish into an app the workspace already has

You can publish into a Rayfin app that's already in the workspace instead of creating a new one, for example an app published from another computer. This needs Rayfin CLI 1.36 or newer in the project; see Rayfin versions.

  1. In Publish to a Fabric workspace or Publish to another workspace, choose the workspace.
  2. Under App, choose the app. App shows when the workspace has Rayfin apps and the project doesn't publish there yet. Its first choice, such as A new app named “Contoso Expenses”, creates a new app.
  3. Select Publish.

When you choose an app, you see "Publishing replaces the app “Budget” in Operations with this one." Unless you enter a Name, the published app takes that app's name.

What happens while your app publishes

Your app stays in the preview while it publishes, so you can keep looking at it: your app on this computer, or your published app. A strip above the preview shows where it's publishing to, such as "Publishing to Production", the step in progress, a progress bar and how long it has taken. Select Watch to follow it on the publish screen, and Back to your app to return. Select Logs to see the publish log. When the published app is in the preview, Point & Edit and the Fabric view wait until publishing ends, and the preview reloads when the new version is live.

On the publish screen, Ray talks you through it, and below him a list shows the steps publishing has been through, the one in progress, and the steps still to come.

The publish control in the app bar shows the progress too, so you can follow it from the Code, Blueprint and Advisor tabs.

With Rayfin CLI 1.35 or newer, the steps come from the CLI's own progress reports, and the step in progress shows the CLI's words for what it's doing. A typical publish goes through:

  1. Connecting to Fabric
  2. Finding your workspace
  3. Setting up your app in Fabric
  4. Applying settings
  5. Updating your database, for apps that store data
  6. Building and uploading your app
  7. Going live

Some publishes have other steps, such as Installing packages when the project's packages are missing, Getting Fabric capacity ready, Setting up file storage, Connecting your data sources or Publishing your functions. If the CLI reports a step Fabricator doesn't know, the list shows it in the CLI's own words.

Projects on Rayfin CLI 1.34 or older show Connecting to Fabric, Preparing to publish, Building your app, Packaging assets, Uploading to Fabric and Going live instead. To get the detailed steps, update the project's Rayfin. See Keep Rayfin up to date.

If Fabric asks you to sign in again, publishing waits for you to finish in your browser. If you've sent Ray away, the Fabricator logo takes his place.

The publish screen: Ray says "Building your app. Fins crossed!" above Publishing Contoso Expenses and a list of steps. Five are checked off, Building and uploading your app is in progress with the CLI's words "Deploying static content" under it, and Going live is still to come.

During publishing you can select View logs on the publish screen. If publishing fails, Ray stays above the preview and says "Your app didn’t make it to Fabric. Want me to find out why?" He offers Find out why, which opens Help to explain what went wrong, and View logs for the publish log. When Fabric wants you to sign in again, he offers Refresh Fabric authentication too. When Fabric apps aren't available in the workspace's region, he offers Choose another workspace and Region availability instead. See A deploy failed.

Each publish also takes the app's picture with it, as fabricator-thumbnail.webp among its files, and when the app has no description in Fabric, Copilot writes one. The App gallery shows both, to you and to the people you share the app with. See Pictures of your apps and Give an app a description.

Publish changes

After the first publish, the publish control in the app bar names the published app, with its state as a dot: green while it's live, red after a publish that didn't finish. Before that, it says Not published. The button beside it says what publishing would do now:

ButtonWhen it shows
PublishBefore the first publish, the button is highlighted and opens the publish form. Once everything is published, it's quiet, and selecting it runs rayfin up again for the active published app.
Publish 3 changesFiles in the app's folder changed since the app was last published; the number counts them. In a repository that holds other apps too, their changes don't count. When Fabricator can't tell which version is published, it says Publish changes.
Try againThe last publish didn't finish, and the publish control says · Failed after the name. Open it to see what went wrong, and select Find out why to ask Help.
Publishing…Publishing is running, with how far it has got, such as Publishing… 40%. Select it to see the step in progress.

While Copilot is working on a turn, the button is turned off: publishing then would send a half-finished change. Its tooltip says "Copilot is working on this app. Publishing waits until the turn finishes."

Publish after each chat turn

Publish after each chat turn decides whether Fabricator publishes your changes when a successful chat turn ends. It's off until you turn it on. Your choice applies to all your apps, and Fabricator remembers it.

  1. In the app bar, select the publish control, which shows the published app's name.
  2. Turn Publish after each chat turn on or off.

While it's on, the publish control says so after the name with · Auto, for example Prod · Auto. Point at the publish control to see "Publish after each chat turn is on: chat changes publish as each turn finishes." or, while it's off, "Publish after each chat turn is off: chat changes wait for you to publish them." You can also use Search: Turn on Publish after each chat turn or Turn off Publish after each chat turn.

While it's on

Fabricator publishes after a successful chat turn when the app has changes that aren't published. This includes edits that Copilot already committed to the project's git history. It doesn't publish when:

  • the chat turn failed or was cancelled,
  • there are no changes since the last published version,
  • a team workspace pipeline publishes the app,
  • the app hasn't been published yet: an app's first publish is yours to start,
  • Fabricator can't check for changes. It says "Could not check for changes to publish. Select Publish to publish your changes." Select Publish to publish them yourself.

While an after-turn publish runs, the preview keeps showing what it showed during the turn: your app on this computer. For a published app that this computer can't run, that's the local preview with your changes, when the turn had one, and once publishing ends, the preview shows your published app.

When Fabricator switches to another published app or can't tell which version is published, the next successful turn publishes once to set a new baseline.

While it's off

Your changes stay on this computer until you publish them. The button in the app bar counts them, for example Publish 3 changes: select it when you're ready. Your app stays in the preview while it publishes, and your app on this computer shows your changes either way.

A published app that this computer can't run previews against its published backend, which falls behind your code, so the preview shows your app from a local Vite server whenever the app is open, at a localhost address, not only while Copilot is working:

  • The local preview uses your published app's backend. Frontend changes show as Copilot makes them, but changes to data, permissions or functions work only after you publish them. Fabricator asks Copilot to tell you when a change needs a publish.
  • When a turn that changed your app ends, the preview reloads once, so it shows the finished app from a fresh start, not only the live updates made while Copilot worked. A turn that changed nothing, such as a question, leaves the page as it is.
  • Point & Edit works on the local preview, so you can pick what to change and send it to Copilot without publishing first. The Fabric view, for an app that has one, works on the published app, so it's unavailable.
  • The local preview stops when you switch to another app or close Fabricator, and the app you open next gets its own. If you switch your app to another published app, its local preview starts again with that one's settings.
  • If the project has no local Vite installation, there's no local preview. The preview keeps showing the published app, without your latest changes, until you publish them.
  • Team apps aren't affected. They still save to GitHub after each turn, and your preview deploys when you publish.

Turning Publish after each chat turn on closes that local preview and doesn't publish anything. Your changes are still on this computer: the next successful chat turn publishes them, or you can publish them from the app bar.

Work with more than one published app

In the app bar, select the publish control, which shows the published app's name, to open the Published apps panel. It opens straight away and doesn't sign you in to Fabric. It shows:

  • the published app's name and state, as a dot and words, for example "Published 2 h ago". Select the pencil, Rename this published app, to rename it, or the trash can, Delete this published app, to delete it.
  • what's waiting to publish, with See what changed, which opens History in the Code tab,
  • App, the app's address. Select Copy link to copy it, or Open in your browser.
  • Item, the ID of the published app's item in its Fabric workspace. Select Copy item ID to copy it, or Open in Fabric to open the item in the Fabric portal.
  • Workspace, the Fabric workspace, with its region and capacity. Select Open the workspace in Fabric to open it in the Fabric portal. The region and capacity show once you're signed in to Fabric.
  • Account, the Fabric account that publishes. Select Change to use another, or Sign in when you're signed out.
  • Other published apps, the project's other published apps. Select Switch on one to make it the active published app: the preview shows it, and publishing goes to it. Point at one to rename or delete it.
  • Publish after each chat turn. See Publish after each chat turn.
  • Publish to another workspace…, to publish the same project to another workspace.

Share is next to the publish control once the app is published. See Share your app.

Switching uses Rayfin's recorded deployments for the project. Each published app is in its own Fabric workspace.

Delete a published app

Deleting a published app deletes it and all its data in Fabric, for everyone who uses it, and can't be undone. Your app on this computer stays as it is.

  1. In the app bar, select the publish control to open the Published apps panel.
  2. Select the trash can, Delete this published app, beside the published app's name. To delete one of the Other published apps, point at it and select its trash can.
  3. Fabricator asks first, for example "Delete Production and all its data in Operations?" Select Delete, or Cancel to keep it.

You can't delete a published app while your app is publishing or Copilot is working on it.

When you delete the active published app, the most recently published of the project's other published apps becomes the active one, and the question names it. If there are none, your app isn't published anymore, and Publish asks for a workspace again.

If Fabric wants you to sign in again, Fabricator signs you in and tries once more. If the app is already gone from Fabric, for example because someone deleted it in the Fabric portal, deleting it removes it from the project.

Refresh Fabric authentication

If publishing repeatedly fails even though you recently signed in, use Refresh Fabric authentication from the account menu. When publishing fails because Fabric wants you to sign in again, the notice above the preview offers it too. Fabricator runs the selected project's rayfin logout, then rayfin login, verifies the new Fabric credential, and doesn't publish your app again by itself. After it succeeds, publish again from the app bar.

See setup and sign-in troubleshooting and publishing troubleshooting for recovery steps.

Redirect URIs for live preview

The live preview of an app that this computer can't run uses the app's backend in Fabric: the published app's, or for a team app, the team's deployment of it. Fabricator runs the project's own Vite dev server on an allowed localhost port. If the normal sign-in-compatible ports are busy and you choose another port, Fabricator can add that origin to services.auth.allowedRedirectUris in rayfin/rayfin.yml and push the runtime settings to Fabric without uploading the app. This keeps Fabric sign-in working in the live preview. The next publish includes the app code. See When every preview port is busy.

Something wrong on this page?Edit this pageReport an issue with this page

Fabricator is a personal project by Sachin Patney. It is not a Microsoft product and is not affiliated with, endorsed by, sponsored by, or supported by Microsoft.

GitHubMIT LicenseReleasesYouTubeDocumented for Fabricator 1.67.2

On this page