Share via

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

hawthorne91 230 Reputation points
Dec 13, 2023, 9:31 PM

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.
5,160 questions
{count} votes

Accepted answer
  1. Devesh Tiwari 180 Reputation points
    Dec 14, 2023, 7:45 AM

    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
    Dec 14, 2023, 5:12 AM

    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,356 Reputation points
    Dec 14, 2023, 5:59 PM

    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
    Dec 15, 2023, 2:17 PM

    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.