1

I created a web job (Console Application) on azure for copying one container blob to another and register on Azure.

It is working properly.

But I want to call the this from c# code not azure scheduler.

How is it possible ?

Like :-

 if (Check == true)
                {
 //Run Web Job Code here
}
juvchan
  • 6,113
  • 2
  • 22
  • 35
jitendra kumar
  • 81
  • 2
  • 12
  • Possibly related... http://stackoverflow.com/questions/22265546/can-i-invoke-an-azure-webjob-from-an-azure-website-and-pass-it-parameters – JoshL Mar 30 '16 at 13:31
  • what do you mean by "from c# code" ? you want to execute your code on demand from an external application ? – Thomas Mar 31 '16 at 08:23
  • Yes. i want to call web job from my application. like :- if (Check == true) { //Run Web Job Code here } – jitendra kumar Mar 31 '16 at 10:46

1 Answers1

0

Add an "settings.job" file to the root of your job directory. This file must contain an Cron-Expression to start the job (basic cron syntax).

{
  "schedule": "0 * * * * *"
}

runs for example, every hour.

For a more detailed description: https://github.com/projectkudu/kudu/wiki/Web-jobs

opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143