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.
Asked
Active
Viewed 144 times
0
-
pretty sure it is, but quite "dirty". I don't think there is a native way to do that. – 4c74356b41 Dec 15 '16 at 11:43
-
@4c74356b41Do you have more information on how to accomplish that? – Bruno Caceiro Dec 15 '16 at 11:47
1 Answers
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.
Tom Sun - MSFT
- 22,436
- 3
- 23
- 40