Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Deploy from zip: potential file size issues

Open bandrei opened this issue 7 years ago • 0 comments

OS: MacOS Azure CLI version: 2.0.75

Steps to repro ( 1) and 2) can be done via the Azure Function CLI):

  1. Create an Azure function using VS Code.
  2. Deploy the function from VSCode (i.e. so that it does a zip deploy)
  3. Download the zip file from the container where it was deployed to by VSTS (i.e. azureappservice-run-from-package)
  4. unzip the file
  5. rezip
  6. Deploy using the azure cli commands
az functionapp deployment source config-zip --resource-group {rg} --name {funcname} --src {zipFile}
  1. zip file uploaded to the function-releases container
  2. 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).

bandrei avatar Oct 23 '19 22:10 bandrei