Create and deploy Webjob from another Webjob

妖精的绣舞 提交于 2019-12-12 04:37:35

问题


Is it possible to deploy a Webjob from another Webjob in Azure? I've read the documentation, it's all about manually instantiating a Webjob, or using CronJobs. I want, in a Webjob, deploy and run another Webjob with some parameters.


回答1:


Is it possible to deploy a Webjob from another Webjob in Azure? 

Yes, we could deploy a WebJob automatically also including WebJob way. We could deploy a WebJob using Kudu WebJob API. I test it with fiddler,it works correctly. The following is my details steps.

https://{userName}:{password}@{WebAppName}.scm.azurewebsites.net/api/zip/site/wwwroot/App_Data/jobs/{continuous or triggered}/{job name}/

1.Get the username, password info from the azure website profile

2.Send the http put request with header and attach the zip file in the request body

Content-Type: application/zip

Content-Disposition: attachement; filename=myfilename

3.Check from the azure portal that WebJob has been created correctly.



来源:https://stackoverflow.com/questions/41163334/create-and-deploy-webjob-from-another-webjob

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!