azureazure-webjobsazure-scheduler

HOWTO update schedule of webjob in Azure


I've added some webjobs to an appjob. The webjobs are deplayed from VS together with a new version of the webapp.

TO schedule the jobs I've added a settings.job file to the webjob rootfolder.

If I look in Azure the webjobs are scheduled correctly.

But how to change that schedule from Azure ? The only way to change that schedule now seem to be to change the settings.job file and redeploy from VS.

UPDATE:

given that KUDU does not always work and that the procedure to change the schedule is not really fit for a non-tech user. I started looking at using azure scheduler. But cannot find out how to get it working.

From the webapp|webjob configuration I took the webhookurl, usr, pwd. Created a new schedule using this webhookurl and credentials (basic auth)

But I get this error:

No route registered for '/api/triggeredwebjobs/<webjobname>/run'

Any suggestions?


Solution

  • For those who struggle with the same issue :

    Best solution turned out to be to use Azure's Scheduler Job Collections. The tricky part was finding out how to set this up.

    Action settings: - https - copy the uri you find in the properties page of the webjob to call, it is called 'webhook' - copy the credentials from the same place