问题描述
是否可以从Azure中的另一个Webjob部署Webjob?我已经阅读了文档,全部都是关于手动实例化Webjob或使用CronJobs的.我想在一个Webjob中,部署并运行带有某些参数的另一个Webjob.
是的,我们可以自动部署一个WebJob,也包括WebJob方式.我们可以使用
2.发送带有标头的http put请求并将zip文件附加在请求正文中
内容类型:应用程序/邮政编码
Content-Disposition:附件;filename = myfilename
3.从azure门户检查是否已正确创建WebJob.
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.
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.
这篇关于从另一个Webjob创建和部署Webjob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!