Can I use Azure Functions V3 Azure static web API
When creating an Azure Static Site using the Blazor settings, you get an option to configure an API. My repository has an Azure Functions V3 API, and I want to use that. After making all the definitions, the build and deploy workflow fails. When I eliminate the api_location setting, the workflow succeeds.
I am pretty sure that the workflow expects a V2 Azure Functions application.
Can I supply a custom build command to build the V3 application?
Will role management work OK with V3?
If you repo is public, can you share it? See this doc for compatible versions. Functions V3 is supported but the languages and language versions are limited to a select list: https://learn.microsoft.com/en-us/azure/static-web-apps/apis
Thanks! My repo is not public sorry.
But from the list in the link you shared I see a problem in the fact that only .NET Core 3.1 is supported for a managed API while my V3 Azure Functions API uses .Net 5.
Having said that, the document is from May of 2020. Do you know if there are plans to push support for .Net 5 ?
Working on this right now! Should have .NET 6 support sometime in November. (Shouldn't be a difficult upgrade for you)
Also the article date is incorrect. It was updated a few months ago and forgot to update the date.
So last question as you seem like the person ask - can you point me to an article on setting up identity and role management with the setup of a blazor client in a static site and an unmanaged c# Azure functions V3 API? Thanks!
Should be the same as a managed function app, if you use the bring your own function app feature. The x-ms-client-principal header should be set when a function is called and the user is logged in.
Sign in to comment