C # console application - scheduled on Azure

I have a very simple console application in C # that I would like to run on Azure on a schedule, for example, every day at 3 a.m. I am after some advice on the best way to implement this on Azure.

I should mention that I already have another very similar application for which I created Cloud Service and Worker Role, which essentially sits in a loop up to 3AM, then some things go back to waiting. It seemed to me that I was probably spending money on this approach and that there should be a better way.

So, I did some research, and so far I come up with WebJobs and the Azure Scheduler Service, but alas, none of them A) matters a lot to me (for now, until I do more research) or B) seem very straightforward if all I want to do is launch the console application once every 24 hours.

I think I'm trying to shorten my research, because I do not want to study one specific method, if this is not the best method for me.

So, what I'm trying to ask, a VERY long way, is ... Given that I have a very simple C # Console application, what is the preferred method for “hosting” this in Azure so that I can run it systematically?

+4
source share
2 answers

I believe the easiest way is a website on a website.

+3
source

You can create a worker role and implement planning using Quartz.NET.

See how to do it: " Using Quartz.Net to schedule tasks in Windows Azure work resource roles "

0
source

Source: https://habr.com/ru/post/1548389/


All Articles