Search code examples
azureazure-functions.net-8.0

az funcapp publish .net8 Isolated breaking Azure configuration runtime settings on Sync


I have an azure functions project that I have upgraded from .net5 -> .net 8.

In the upgrade path, I have come across many issues in specifying that the function app is dotnet-isolated, and using the correct version of .net.

My solution so far has been to run the publish command in my pipeline like so: func azure functionapp publish ${{ parameters.funcAppName }} --no-build --dotnet-isolated --dotnet-version '${{ parameters.dotnetVersion }}'

I'm passing dotnetVersion as 8.0, but during the sync of the publish, the function app configuration settings drops the .net version. If I change it to '.NET 8 Isolated' mid sync, the sync will complete, but just passing 8.0 as the version doesn't seem to work. Any ideas? The documentation on publish seems behind, and incomplete right now.

Thank you.


Solution

  • The real issue lied in the azure functions core tools version. The pipeline was using v3, when I updated to v4, the publish succeeded.