Azure Functions Deployment Error - "Number of entries expected in End Of Central Directory"

hawthorne91 230 Reputation points
2023-12-13T21:31:53.9266667+00:00

I am experiencing an issue when deploying one of my Azure Function APIs using the Virtual Studio Code Azure Function extension. I deploy my code into an Azure Function for my APIs, and when I try to deploy my code now, I get the error "Number of entries expected in End Of Central Directory does not correspond to number of entries in Central Directory" inside of the terminal. The error is with the "Azure Functions" extension. I tried reverting to another version of the "Azure Functions" extension and deploying, however I get the same error. I'm not sure what to do. For reference, I am using the Azure Functions extension, version 1.13.1 in Visual Studio code.

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

Accepted answer
  1. Devesh Tiwari 180 Reputation points
    2023-12-14T07:45:01.41+00:00

    After decreasing the version of Azure extension, It started working for me.

    Following settings worked for me:

    App Service -> 0.25.0

    Azure Functions -> v1.12.4

    Azure Resources -> v0.8.0

    14 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Jie 85 Reputation points
    2023-12-14T05:12:58.3466667+00:00

    Changing Extension "Azure Resources" version to 0.8.0 works for me.

    Not sure why my last comment was eaten.

    17 people found this answer helpful.

  2. MuthuKumaranMurugaachari-MSFT 22,321 Reputation points
    2023-12-14T17:59:43.51+00:00

    Devesh Tiwari Thanks for the answer and it really helped lot of users with similar issues for a quick resolution.

    Update:

    Our product team has fixed the issue in the Azure Resources extension, and we just released 0.8.3 version with the fix. Please update to this version for mitigation and let us know if any issues or have any questions.

    We are sincerely sorry for the inconvenience caused by this issue.

    6 people found this answer helpful.

  3. Ramón F. López-Imizcoz 0 Reputation points
    2023-12-15T14:17:32.0433333+00:00

    I don't have Azure Resources installed, but the Function Apps extension. I had to downgrade it to v1.12.4. When will it be also fixed?

    0 comments No comments

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.