Deploy from zip: potential file size issues
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
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}
```
7. zip file uploaded to the `function-releases` container
8. 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).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.