function app: Unable to upload python ZIP in Azure function using CLI
See original GitHub issueThis 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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:27 (4 by maintainers)
Top Results From Across the Web
Zip deployment for Azure Functions - Microsoft Learn
Push deploy a . zip file to your function app by using the az functionapp deployment source config-zip command. To use this command,...
Read more >Deploying a Python Azure function as .zip - GoDataDriven
Triggering remote build & deploy. After creating the .zip file, I deploy the example function app like this with the Azure CLI: az...
Read more >ZIP Doesn't show in Azure Functions - Stack Overflow
I have tried the below steps to do the zip deployment of Function App using CLI: Created the .NET 6 Azure Functions locally...
Read more >Azure DevOps Python Function App failed zip deployment
I have a Python Azure Functions app that is set to deploy automatically to an Azure App Service through an Azure DevOps pipeline....
Read more >Developing and deploying a Python Azure Function - Medium
I have been working with C# Azure Functions for a quite a while now. ... Azure to CLI to deploy the Python function...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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