azure-cli: function app: Unable to upload python ZIP in Azure function using CLI
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az functionapp deployment source config-zip
root@pipejenkinstf:/test# az functionapp deployment source config-zip --resource-group myrandrg --name myuniquefunctj --src ./deploy.zip --verbose
- Uploading ============================== 100.0% … Syncing Triggers… Unknown error command ran in 5.317 seconds. root@pipejenkinstf:/test#
Errors:
Unknown error
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az functionapp deployment source config-zip --resource-group {} --name {} --src {} --debug
Expected Behavior
Environment Summary
Linux-4.9.0-11-amd64-x86_64-with-debian-9.11
Python 3.6.5
Shell: bash
azure-cli 2.0.81 *
Additional Context
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 32 (9 by maintainers)
for anyone else struggling with azure cli, the
func
app from Azure Functions Core Tools works for deployment.i ran it directly from the staging folder:
alternative values for the different language runtimes:
I finally see my functions in the portal and can successfully invoke them 🎉
@anthonychu I’ve been experiencing this issue for like a year and figured with all the time at home I can finally help to fix it. 👍
Function Env: Function App I’m using -
mikaeldevsite
:Command Producing Error:
az functionapp deployment source config-zip --name $RESOURCE_NAME --src azure-web-img-dwnszr.zip
(See this script for a full example)Error Produced: Exact same as orig. post. The reason why I have dealt with this until now is because the
.zip
file is still created - I just need to ignore the error and all my scripts work fine.Debug Investigations:
/azure-sdk-for-python/blob/master/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2019_08_01/operations/_web_apps_operations.py
, line 24356 expects a return code of204
from the API but200
is returnedConclusion: The Sync Function Triggers API is not returning the documented return code. Do you know the best way to engage with the Azure Functions team to get this fixed @anthonychu?
Debugging screenshot
Postman screenshot
It’s seems that running it in a Windows host works. Hope that’s helpfull.
Thanks for the repro @mikaelweave. Super helpful. Sorry I missed it the first time. https://github.com/Azure/Azure-Functions/issues/1674
fwiw this is a show stopper…If i cant deploy i have to abandon azure functions