Share via

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.


3 answers

Sort by: Most helpful
  1. Nicki De Wet 15 Reputation points
    2025-10-10T06:53:36.6133333+00:00

    I struggled with this error "failed with HTTP status code Failed." for hours. Upgraded Frameworks, tools, etc. Eventually I tried creating a different type of Azure Function, which then gave me a quota error, as our admin had limited the regions into which we can deploy. I changed it to the 'approved' region, and it worked fine. I then recreated the function as Flex Consumption selecting the same region, and the deploy worked without issue.

    Hopefully this helps someone struggling with the "HTTP status code Failed" issue.

    Was this answer helpful?

    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).

    Was this answer helpful?


  3. 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.

    Was this answer helpful?

    0 comments No comments

Your answer

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