You can schedule the execution of Windows application using Azure WebJobs.
- Copy .exe and supporting files to a directory.
- Zip up the directory.
- Go to Azure Portal -> App Services -> UserApp01 -> WebJobs
|File Upload||Zipped up file|
Triggered CRON Expression
|0 0 * * * *||Every Hour|
|0 30 9 * * *||at 9:30 AM every day|
Here are some examples of CRON expressions you can use for the timer trigger in Azure Functions.
|once every five minutes|
|once at the top of every hour|
|once every two hours|
|once every hour from 9 AM to 5 PM|
|at 9:30 AM every day|
|at 9:30 AM every weekday|
|at 9:30 AM every Monday in January|
Note: Need to turn on “Always On” for app service. Time is the time on the server (UTC).
Indicates that your web app needs to be loaded at all times. By default, web apps are unloaded after they have been idle. It is recommended that you enable this option when you have continuous WebJobs running on the web app.