This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
An app must call a third-party API that requires a long-lived key. Where should the key and the call live?
In frontend code, because publishable keys are safe in client code.
In rayfin.yml, so every environment shares the value.
rayfin.yml
In a function, with the key stored as a Rayfin secret and read through ctx.Secrets.
ctx.Secrets
A function calls the Fabric REST API and works during rayfin dev but fails with an authorization error after rayfin up. What is the most likely cause?
rayfin dev
rayfin up
The function declared the wrong audience name in rayfin.yml.
The local host uses the developer's account, and the deployed call uses the app identity, which lacks access.
Functions can't call Microsoft APIs after deployment.
A function creates a row in an owner-scoped entity by using ctx.getDataClient(). Whose permissions apply to the write?
ctx.getDataClient()
The signed-in caller's, so the entity's policies still apply.
The app identity, because functions use application authentication.
No one's, because function writes bypass entity policies.
A function needs a token for an internal API protected by Microsoft Entra ID that isn't one of the five built-in audiences. What should you do?
Declare a custom audience as an application ID or an api:// or https:// resource URI.
api://
https://
Use AudienceType.KeyVault, because it covers any resource.
AudienceType.KeyVault
Declare the audience with a /.default scope suffix.
/.default
You want to confirm that Functions work in a new workspace before designing around them. Which step provides the evidence?
Read the region availability article only.
Run a local function and check that it responds.
Deploy a minimal app with Functions enabled and confirm that rayfin up succeeds.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?