Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set up a CRON job using Windows Azure?

Is there a way to use the windows scheduled task to kick off a url or a exe on a schedule?

Can I write a program as an exe then create a Azure VM then RDP into the Azure VM and hook it up to windows task scheduler?

like image 511
OpTech Marketing Avatar asked Dec 24 '11 23:12

OpTech Marketing


People also ask

How do I schedule a cron job in Azure?

Schedule recurring jobsIn the Azure portal, create a blank logic app workflow in the designer. For the basic steps, follow Quickstart: Create your first logic app. In the designer search box, enter recurrence. From the Triggers list, select the trigger named Recurrence.

How do I setup a cron job in windows?

- Go to Start >> Control Panel >> Scheduled Tasks >> Add Scheduled Task. - Type "Moodle Cron" as the name of the task and select "Daily" as the schedule. Click "Next". - Select "12:00 AM" as the start time, perform the task "Every Day" and choose today's date as the starting date.

Is cron job available in windows?

On Microsoft Windows, cron jobs are known as Scheduled Tasks. They can be added through the Windows Task Scheduler user interface, by using PowerShell or with help of schtasks.exe . Running a task at specific time or at recurring dates is one of the common administrative tasks on all operating systems.

What is the equivalent of cron in windows?

The windows equivalent to a cron job is a scheduled task. A scheduled task can be created as described by Alex and Rudu, but it can also be done command line with schtasks (if you for instance need to script it or add it to version control).


2 Answers

Things got much easier lately, please see this link https://azure.microsoft.com/en-us/services/scheduler/ to create a scheduled job in the new Azure Scheduler. There is a basic Free tier as well as some paid options but I think this is exactly what many of us were looking for. It is an excellent solution for triggering URLs with GET,POST,PUT,DELETE requests.

Just follow the simple instructions. Starting by selecting "Scheduler" from the Azure dashboard app menu:

enter image description here

like image 38
Milan Avatar answered Sep 22 '22 15:09

Milan


Azure does have a scheduler now.

It allows invoking a Web Service over HTTP/s and post a message to a Windows Azure Storage Queue. It's very new but it can be free if you do not need the scheduler to be executed often. Otherwise it's a small monthly fee which come with scheduled task that can be up to every minute.

like image 53
Patrick Desjardins Avatar answered Sep 22 '22 15:09

Patrick Desjardins