Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fabric apps helps you build and ship backend services faster by providing ready-to-use infrastructure for authentication, data persistence, and static hosting. This quickstart shows you how to create your first app in Fabric.
Prerequisites
- A Microsoft account with access to Microsoft Fabric.
- A Fabric workspace where you have contributor or admin permissions.
- Fabric app enabled by a tenant admin in settings. See Enable Fabric app in tenant admin settings.
Enable Fabric app in tenant admin settings
A Fabric tenant administrator must enable the Fabric app workload before users can create Rayfin items. If you are not a tenant admin, contact your organization's Fabric administrator to complete this step.
- Sign in to the Fabric admin portal.
- Navigate to Tenant settings.
- Under Fabric apps (preview), toggle the setting to Enabled.
- Choose whether to enable it for the entire organization or specific security groups.
- Select Apply.
Changes may take a few minutes to propagate. After the setting is enabled, users in the allowed scope can create Fabric apps in their workspaces.
Step 1: Sign in to the Fabric portal
Open Microsoft Fabric in your browser and sign in with your Microsoft account.
Step 2: Select a workspace
After signing in, select a workspace from the left navigation panel. If you do not have an existing workspace, create one:
- Select Workspaces in the left navigation.
- Select New workspace.
- Enter a name for the workspace and select Fabric capacity.
Step 3: Create a new Fabric app
- In the workspace view, select New item.
- Search for App in the item type list or scroll to find it.
- Select App item to open the creation dialog.
- Enter a name for your Fabric app (for example,
my-rayfin-app). - Select Create.
Step 4: Open, edit, and deploy your app
You can develop locally using Rayfin CLI.
Open a terminal of your choice.
Use the CLI command script shown in the portal and run in your terminal to download the app locally.
Example
npm create @microsoft/rayfin@latest -- "<appitemname>" --template todoapp --workspace <workspacename>Go to the project directory.
cd <your project directory>Customize your app by editing the code directly or with the help of GitHub Copilot.
Test local changes with your Fabric backend with the command.
npm run devPublish your changes with:
npx rayfin upTo deploy to another workspace, you can provide the
--workspaceparameter.npx rayfin up --workspace <workspacename>To switch between these two workspaces , run
npx rayfin switch --workspace <workspace>.
Next steps
- Explore Data models & decorators to define your backend schema.
- Learn how to connect frontends with the GraphQL guide.
- Configure authentication with Authentication.