Azure Function App Deployment Error

Greenwald, Inbal 0 Reputation points
2023-07-23T13:50:34.32+00:00

Hi,

When trying to deploy Python azure function from local VSCode to azure I get the following error:
leaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/.....zip (0.00 MB) to /tmp/zipdeploy/extracted Central Directory corrupt.
Central Directory corrupt.
Deployment failed.

Until a week ago, I was able to do deploys, now I'm blocked.

Please your support.

Thanks,

Inbal

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

3 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-08-01T10:25:57.26+00:00

    @Greenwald, Inbal We sincerely apologize for any inconvenience caused.

    We have become aware of a recent emerging issue with the Azure Function App deployment via the VS Code extension. Specifically, the zip package size appears to be unusually small, around 22 bytes, leading to deployment failures with the error message "Central Directory corrupt." Our team at PG is actively investigating the matter and is already working on a fix.

    As a temporary workaround, we recommend reverting to the previous version of the Azure Functions VS Code extension, namely version 1.11.0, as the newly published version 1.12 is currently causing the problem. https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions.

    Please keep us informed of any further issues you encounter, and we'll be sure to update you as soon as the resolution is implemented. Thank you for your understanding and patience.

    0 comments No comments

  2. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-08-03T05:31:21.04+00:00

    @Greenwald, Inbal Update- The fix has been deployed and issue is now mitigated.

    Please let us know if further query.

    Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.

    0 comments No comments

  3. LAWLOR, KEVIN M 0 Reputation points
    2023-08-17T11:22:30.12+00:00

    I have this same problem, and reverted back to Azure Functions VS Code extension, namely version 1.11.0, but still having this issue

    We have become aware of a recent emerging issue with the Azure Function App deployment via the VS Code extension. Specifically, the zip package size appears to be unusually small, around 22 bytes, leading to deployment failures with the error message "Central Directory corrupt." Our team at PG is actively investigating the matter and is already working on a fix.

    As a temporary workaround, we recommend reverting to the previous version of the Azure Functions VS Code extension, namely version 1.11.0, as the newly published version 1.12 is currently causing the problem. https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions.

    Please keep us informed of any further issues you encounter, and we'll be sure to update you as soon as the resolution is implemented. Thank you for your understanding and patience.

    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.