Azure function, Deploy to Linux based function from VSCode on a windows computer doesn't work

Dataholic 80 Reputation points
2023-07-07T15:54:04.3+00:00

Developed an Azure Function in VSCode with JavaScript on a Windows computer.

It works fine if deployed it to Windows based function but doesn't work when deployed into Linux based function.

Also, when deployed from VSCode to Linux function, I received error message:

"Encountered an error (InternalServerError) from host runtime."

Although, the function app is available in the portal after the deployment proess. However, it will production "500 internal server err." when test it.

This happens even with JavaScript HTTP function sample code example.

Please help.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,416 questions
{count} votes

Accepted answer
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-07-11T08:28:53.6266667+00:00

    @Dataholic Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you have 2 different asks here:

    1. Internal server error for your JS based Azure Function App
    2. how-to setup this in VSCode to use zip deployment ?

    Internal server error for your JS based Azure Function App:

    Answer: I see that you have already raised another thread for the same issue. The Internal Server 500 error code is due to the error Did not find any initialized language workers issue. Please note this issue a known issue reported recently. We have already involved the Product Group team internally.

    The issue was caused by azure portal saving test data within the azure functions. Portal team made a fix. ETA for deployment of this fix to prod is 7/14th. We sincerely apologize for the inconvenience caused due to this. We appreciate your patience on this.

    Sharing the related thread for the same issue: https://learn.microsoft.com/en-us/answers/questions/1324267/how-to-fix-the-error-did-not-find-any-initialized?comment=question#newest-question-comment

    How-to setup this in VSCode to use zip deployment ? Answer: When you publish from Visual Studio Code, you take advantage of the Zip deploy technology. Please follow the steps mentioned here.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.