Update or change webjobs types
Issue:
· Change webjobs from Triggered to Continuous
· Change webjobs from Continuous to Triggered
Solution:
· Continuous
· Triggered
Sometimes we want to change the webjob's types e.g. Triggered to Continuous or vice versa.
There is no direct way to achieve it. We don’t have any REST API which can help us to update or change webjobs type.
Please refer below workaround to achieve it.
Examples is for updating webjobs from triggers to continues.
1. Create a Triggered webjob from the portal.
2. Go to KUDU site.
3. All web jobs are stored inside jobs folder.
Complete path is: D:\home\site\wwwroot\App_Data\jobs
You can see, a Triggered folder is created after creating a triggered web job.
4. Go to inside triggered folder and download the web job.
5. Go to D:\home\site\wwwroot\App_Data\jobs and create a new folder with name “continuous”
6. Create a new folder inside Continuous folder. This new folder name will be the name of your web job.
7. Go to inside that folder and drag and drop the webjob content which we downloaded in step 4. It will extract the content from the zip folder.
8. Now go to Web app portal-> Web job and refresh the webjobs.
9. You can notice a new web job with “continuous” type is created.
10. Now you can delete the Triggered webjob as you have converted your Triggered web job to continuous web job.
11. Similar process you can follow to convert Continuous web jobs to Triggered web jobs.
Reference : https://feedback.azure.com/forums/169385-web-apps/suggestions/5673228-update-or-change-webjobs
I hope this helps.
I hope this helps.