Azure-Functions
Azure-Functions copied to clipboard
Deploy from zip: potential file size issues
OS: MacOS Azure CLI version: 2.0.75
Steps to repro ( 1) and 2) can be done via the Azure Function CLI):
- Create an Azure function using VS Code.
- Deploy the function from VSCode (i.e. so that it does a zip deploy)
- Download the zip file from the container where it was deployed to by VSTS (i.e.
azureappservice-run-from-package) - unzip the file
- rezip
- Deploy using the azure cli commands
az functionapp deployment source config-zip --resource-group {rg} --name {funcname} --src {zipFile}
- zip file uploaded to the
function-releasescontainer - Function never starts in Azure
However, if you follow the same steps and redeploy the original unmodified file the deployment will succeed and the function will start. From my investigation the only thing that seems obviously different is the archive size after re-packing. Note that using the Azure Function CLI and publishing a function from the command line consistently produced the smaller sized zip (just like the deploy from VSTS).