Add secure server-side logic using Fabric Apps Functions
Intermediate
Developer
Microsoft Fabric
Add server-side functions to a Fabric app to keep secrets off the client and to call external and Microsoft services. Learn how function identities work, and verify a function after deployment.
Learning objectives
After completing this module, you will be able to:
- Decide when logic belongs in a function instead of the client.
- Create, run locally, and deploy a function with
rayfin functions init,rayfin dev, andrayfin up. - Store secrets with
rayfin secret setand read them in a function throughctx.Secrets. - Declare audiences and call Microsoft resources as the app identity, and grant that identity the required permissions.
- Explain how local and deployed identities differ and preserve caller policies with
ctx.getDataClient().
Prerequisites
- Working knowledge of server-side TypeScript and Node.js.
- Node.js 24 and Visual Studio Code installed locally.
- Familiarity with HTTP APIs and bearer-token or API-key authentication.
- Familiarity with assigning roles on Azure or Fabric resources.
- Azure Functions Core Tools installed locally, or consent for the CLI to install them.
- Permission to create app items in a Fabric workspace on a trial or paid capacity, in a region and tenant where Functions are available. The exercises create a new app, so no existing project or completed module is required.