0

I am completely new to web job. From my reading, I came to know it is something through we can enable trigger to run our script. I have C# code which copies files from ftp server to blob container. It takes few parameters like host, username. I want to create a web job that will pass parameters to the code and trigger the solution as well. Can you please help me with the steps and if possible provide articles relevant to it especially passing of paramters. Detailed steps like creation of dll file of code will be appreciated.

Thanking in advance

Vicky
  • 396
  • 5
  • 24

1 Answers1

0

Do you want to pass the few parameters like host, username to the WebJob from your app and copy your file from ftp server to blob? If yes, from my experience, we can pass the parameter as queue message. We can write our message with the customized format. Such as “{hostname, user}”, you could define the format yourself. Then we can use the queue to trigger the WebJob. When we push a message onto a queue, a backend service pulls messages from the queue and does the work. How to write a queue message please refer to document. Then we can use WebJob SDK (QueueTrigger) to get the queue message and get the parameters that we wanted. How to use WebJob SDK, please refer to the article.

Tom Sun - MSFT
  • 22,436
  • 3
  • 23
  • 40
  • Thanks Tom. Sorry for the very late reply. It helped a lot – Vicky Mar 21 '17 at 03:16
  • hi Tom, do you have any idea about the below: http://stackoverflow.com/questions/42917856/regarding-run-command-and-using-sdk-from-azure-webjob-logs – Vicky Mar 21 '17 at 03:25