I currently have an azure webjob that performs daily synchronization from one database to another, but would like to add the ability to manually start synchronization. I created the following functions in a webjob project:
public static void SyncData([TimerTrigger("0 0 5 * * *", RunOnStartup = false)] TimerInfo timerInfo) { }
[NoAutomaticTrigger]
public static Task SyncAll(TraceWriter log){ }
[NoAutomaticTrigger]
public static Task SyncBranches(TraceWriter log){ }
[NoAutomaticTrigger]
public static Task SyncCustomers(TraceWriter log){ }
[NoAutomaticTrigger]
public static Task SyncInventory(TraceWriter log){ }
I can see the functions in the Kudu control panel under the webjob, but I donโt know how I can run the functions with the http request specified in the MS documentation ( here ):
http://<yourapp>.azurewebsites.net/api/<funcname>
When I make a request to this endpoint, I get a 404 response - what do I need to do to start these functions manually through an HTTP request?
Thanks Ryan
source
share