After migration to .NET 8 Isolated, unable to publish using Visual Studio 2022

Sylvain 216 Reputation points
2024-05-31T14:41:05.0133333+00:00

Hi,

I upgraded an Azure Function (Linux) to dotnet 8 Isolated model following the documentation.

The function runs fine in local, but I cannot publish it to Azure. I get the error "The attempt to publish the ZIP file through https://<fctappurl>.scm.azurewebsites.net/api/zipdeploy failed with HTTP status code Failed."

The logs are very helpful : "we were unable to determine the root cause of the error"...

Any help appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,747 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Héctor Andrade 0 Reputation points
    2024-11-22T01:13:14.49+00:00

    At time to add this answer I have the same error to publish my functions (Azure Function on Linux with dotnet 8 Isolated). Aparently this is a problem with Visual Studio 2022 that not suport this publish method, but you can use Visual Studio Code with Azure Functions extension. Process is relativately simple: install extension, log in your Azure account in VS Code, search your Azure Function resource, left click and Publish.

    0 comments No comments

  2. Phil Johnson 5 Reputation points
    2025-01-21T11:42:00.4833333+00:00

    After a day of searching around, I have just installed the latest version of Visual Studio (17.12.4) and it does support Azure Functions Flex Consumption.

    Thats a good thing for me, I deploy the same app into QA, Staging and Production, so I can use the same publish and config settings as I do in my other projects (vscode is different in this respect and I didn't fully work out how to do it).


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.