Azure function error:"The remote runtime dotnet for function app does not match your local runtime” when publishing a .net 5 function from Visual Code

Viewed 876

When publishing an Azure Function from Visual Code into the "Azure Portal" I get the following error: "The remote runtime "dotnet" for function app "webhooksdie" does not match your local runtime "dotnet-isolated"." So how can I publish into the portal with .net 5.0?

1 Answers

I had to manually set the FUNCTIONS_WORKER_RUNTIME setting of the function app to dotnet-isolated to make my local runtime match the Azure runtime. Seems to apply to .NET 5 and 6.

enter image description here

Related