Hey everyone, our team is struggling to deploy our code to Azure App Service. The support team keeps telling us that our repository is too large, currently around 5GB, and it's been the same since 2020. Does anyone have suggestions on how we can resolve this issue?
2 Answers
How are you deploying your app? Also, what App Service SKU are you using? I typically upload my deployments as zip files to blob storage, where my app service has the necessary permissions to read from it. Then, I set the WEBSITE_RUN_FROM_PACKAGE environment variable to run directly from that zip file. This method avoids having to unzip and process all those files, improving performance, but keep in mind that the file system will be read-only. I usually work with I3v2 SKUs in an App Service Environment for more resources, but depending on your needs, a larger SKU might help you too!
Is your repository too big that it requires upgrading the app service? Or is it simply taking too long to zip the files, causing the app service to time out?
It's more the second issue we're facing.

In my case, I use the deployment center in the App Services UI. I just attach my repo there and sync it.