Search code examples
azureazure-functionsazure-webjobs

Migrating Windows task scheduler applications to Azure


I have a console application connecting to database and executing DML transactions. This console application is currently scheduled using windows task scheduler. I am planning to migrate this to Azure.

Which is the recommended strategy ?

Should this be moved as Azure webjobs or function apps ?


Solution

  • Since you already have a console project, then it's more easier to use Azure Webjobs to achieve that.

    To create a webjob, just create a .zip file which includes the .exe / .dll and other necessary files, then upload to azure. For schedule, please refer to Create a scheduled WebJob. For more details, you can refer to this doc.

    Note: there're some limitation of azure webjobs / azure function, see Azure-Web-App-sandbox. But if you only need to connecting to database and executing DML transactions, you can ignore the limits.

    And yes, you can also do this via azure function, but since you already have a console project, it's easier to use webjobs.