首页 > 解决方案 > VSCode App Service Deploy Failed 2gb zip file limit

问题描述

Deploying Flask app using VSCode App Service fails. The zip file is 2.2 gb - too large.

What procedure can I use to deploy large projects? Can I upload the project in 2 or more steps ?

https://docs.microsoft.com/en-us/azure/app-service/deploy-zip

Created new web app "mysite": https://mysite.azurewebsites.net mysite: Starting deployment... mysite: Creating zip package... mysite: Zip package size: 2.22 GB mysite: Fetching changes. mysite: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/b02a0e95-4e86-4bcc-a71f-9997355a55fb.zip (54.56 MB) to /tmp/zipdeploy/extracted mysite: Offset to Central Directory cannot be held in an Int64. mysite: Deployment failed.

标签: azure-web-app-serviceweb-deployment

解决方案


正如我在您的帖子中提到的应用服务中无法增加 2048MB (2GB) 的 zip 文件限制。这是设计使然,不是 Kudu 的限制,而是 IIS 的限制,因为请求通过前端。当使用集成管道,我们通过不支持超过 2 GB 内容长度的 webengine 代码 (webengine4!MgdGetRequestBasics)。”


推荐阅读