Zipdeploy does not deploy files to the Azure Function App
See original GitHub issueI’m trying to do a deployment job using Kudu’s zipdeploy API to my Azure Function App.
My Function App runtime is ~beta, it contains several Java functions
Repro steps.
The API I’m suing is :
https://function-extension-demo.scm.azurewebsites.net/api/zipdeploy?isAsync=true
By calling the pollable URL, I got the following result:
{
"id": "4bb6062fb70d4ea898b422747eb58256",
"status": 3,
"status_text": "",
"author_email": "N/A",
"author": "N/A",
"deployer": "Zip-Push",
"message": "Created via zip push deployment",
"progress": "",
"received_time": "2017-12-13T07:06:36.310784Z",
"start_time": "2017-12-13T07:06:37.1857772Z",
"end_time": "2017-12-13T07:06:40.7130135Z",
"last_success_end_time": null,
"complete": true,
"active": false,
"is_temp": false,
"is_readonly": true,
"url": "https://function-extension-demo.scm.azurewebsites.net/api/deployments/latest",
"log_url": "https://function-extension-demo.scm.azurewebsites.net/api/deployments/latest/log",
"site_name": "function-extension-demo"
}
But when I check my function app, it is not updated. Just like the deployment never occurred.
My deployment ZIP file: javafunctions.zip
Another thing is that, this issue does not happen every time. I cannot find some condition when it will happen. But when it happens, the only thing I can do is to remove all the functions in the function app from protal, and then, deploy will be successful.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Zip push deployment for Azure Functions
This article describes how to deploy your function app project files to Azure from a .zip (compressed) file. You learn how to do...
Read more >Deploy files to App Service - Azure
Learn to deploy various app packages or discrete libraries, static files, or startup scripts to Azure App Service.
Read more >Zip deploy of Azure function was a success but ...
I tried to reproduce the same issue while deploying the Azure Function using AZ CLI both from Local CLI and Azure CloudShell: az...
Read more >How to Deploy your Azure Functions Faster and Easily with ...
To get to Function URL, go to the Azure portal (portal.azure.com) and click on the Function App that we just deploy. Click on...
Read more >Azure DevOps: Using zipdeploy does not delete old files
When I do a zipdeploy, old files (which are not part of the current deployment) are not deleted (see attached screenshot).
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
Hi @davidebbo , thank you for your reply.
If I access https://function-extension-demo.scm.azurewebsites.net/api/deployments/latest/log, I will get:
But just at the moment, I tried again, and the issue cannot be reproed. As I said before, this issue does not always happening. So far I cannot find under what kind of condition it will happen.
I can try to using drag and drop next time I meet it and update here it when I have some new findings.
For now, any suggestions about what I can do to diagnostic it on my own side?
That’s probably because the Java runtime locks the war file, while Node never locks .js files. Closing here since everything is by design from Kudu standpoint. If a file is locked by the runtime and can’t be copied, there is nothing Kudu itself can do.