question

Stephen Macchia avatar image
Stephen Macchia asked

Function route parameters with CloudScript two

is it possible to use Azure Function route parameters with the new cloudscript? I haven't been able to find any information that addresses either yes or a no. I am coming from a web and app world and very familiar with this sort of design.

For instance:

The function URL would be: https://xxxxxxxx.azurewebsites.net/api/avatar/checkname/{avatarName}?code=111111

with the function signature

[FunctionName("IsAvatarNameFree")]
    public static async Task<IActionResult> RunAsync(
        [HttpTrigger(AuthorizationLevel.Function, "get",  Route = "avatar/checkname/{avatarName}")]
        HttpRequest req, 
        string avatarName,
        ILogger log)
    {

}
CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

Since we need to register the Azure Function URL in PlayFab then call API ExecuteFunction to tell PlayFab which Azure Function we want to execute so that we can use the Cloud Function. So, there is no way to support route parameters as the URL is fixed when registering in PlayFab.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.