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.
After migration to .NET 8 Isolated, unable to publish using Visual Studio 2022
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
2 answers
Sort by: Most helpful
-
-
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).