Home > Blockchain >  Azure - Schedule Webjob programmatically
Azure - Schedule Webjob programmatically

Time:04-01

I want to create a web app with node.js where users can schedule tasks that are executed on a specific time entered by the user.

I was thinking to use azure-webjobs or azure-functions for executing said tasks. I understand that scheduling in the azure portal is possible, however I couldn't find an API to schedule a webjob or function programmatically (for example using the Azure REST API).

Is it possible to schedule a azure-webjob or azure-function programmatically?

CodePudding user response:

Azure WebJobs provide a more or less hidden API inside of KUDU called WebJobs API. This API is REST based webservice and it can be used to manage your jobs programmatically.

There are API endpoints available for the Azure WebJob which will be used for triggering the WebJob.

See the following documentation link for details on the list of available endpoints: https://github.com/projectkudu/kudu/wiki/WebJobs-API

Check this article: How to manage Azure WebJobs programmatically?

Also see this article might be helpful.

  • Related