Update (re-deploy) existing azure webjob

2020-06-30 05:21发布

I created an on-demand webjob. In the management portal there is no option to upload a new zip, to update it.
I can delete the existing webjob and create a new one, but I would like to keep my logs.
Is there any way to re-deploy it, overriding the old version, maintaining the logs?

2条回答
够拽才男人
2楼-- · 2020-06-30 05:48

You can connect to the website where the webjob is at via FTP and update the necessary files without erasing your log files.

You can get the credentials to connect via FTP from the Publish Profile.

查看更多
萌系小妹纸
3楼-- · 2020-06-30 06:04

You can also use your website's debug console at: https://yoursitename.scm.azurewebsites.net/DebugConsole There you get a file explorer in your browser where you can drag/drop files (even zips that will be extracted into your website).

In the file browser go to d:\home\site\wwwroot\App_Data\jobs\triggered\jobname

Some more info about this at: http://blog.amitapple.com/post/74215124623/deploy-azure-webjobs/

查看更多
登录 后发表回答