Diego Rodriguez Nava
Diego Rodriguez Nava

Reputation: 737

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

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?

Upvotes: 2

Views: 2206

Answers (1)

Heinrich Ulbricht
Heinrich Ulbricht

Reputation: 10372

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

Upvotes: 2

Related Questions