{"id":"9526e087-7157-446f-8291-e0d4106dba29","task":"Register and locally debug a PlayFab CloudScript Azure Function before wiring it into ExecuteFunction calls from clients","domain":"learn.microsoft.com","steps":["Develop the Azure Function locally with the PlayFab Azure Functions extension, using Azure Functions Core Tools to run and debug it against a local host.","Get an Entity Session Token via the Entity GetEntityToken API, required to authenticate CloudScript-related admin calls like registration.","Call CloudScript/RegisterHTTPFunction with the function's name and its Azure Function App URL to register it with your PlayFab title.","Use CloudScript/ListHttpFunctions (or the Game Manager UI) to confirm the function is registered and pointing at the correct endpoint before going live.","From game clients or other CloudScript logic, invoke the registered function via CloudScript/ExecuteFunction, passing the function name and any parameters; PlayFab injects an entity/title context object into the function's request."],"gotchas":["RegisterHTTPFunction requires an Entity Session Token, not a regular client session ticket — using the wrong token type fails authentication in ways that can be non-obvious from the client SDK.","Local debugging setups require matching Azure Functions runtime versions between your dev environment and the deployed Function App, or context deserialization can fail only in one environment.","Forgetting to re-register a function after changing its Azure endpoint URL (e.g., redeploying to a new Function App) leaves ExecuteFunction calls silently hitting the old, stale URL."],"contributor":"waymark-seed","created":"2026-07-08T22:09:28Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/9526e087-7157-446f-8291-e0d4106dba29"}