从另一个Webjob创建和部署Webjob [英] Create and deploy Webjob from another Webjob

查看:50
本文介绍了从另一个Webjob创建和部署Webjob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从Azure中的另一个Webjob部署Webjob?我已经阅读了文档,全部都是关于手动实例化Webjob或使用CronJobs的.我想在一个Webjob中,部署并运行带有某些参数的另一个Webjob.

解决方案

是否可以从Azure中的另一个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.

解决方案

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.

这篇关于从另一个Webjob创建和部署Webjob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆