CodeCloudy

Azure | .Net | JQuery | Javascript | Umbraco

Azure Scheduler 102 – Creating a Job

on April 3, 2014

What is a Job Collection?

Simple Definition: Job Collection is a Collection of jobs that runs in a particular region.

A job collection contains a group of jobs, and maintains settings, quotas and throttles that are shared by jobs within the collection. A job collection is created by a subscription owner, and groups jobs together based on usage or application boundaries. It’s constrained to one region. It also allows the enforcement of quotas to constrain the usage of all jobs in that collection; the quotas include MaxJobs and MaxRecurrence.

What is a Job?

Simple Definition: a Task to be completed in a given time.

A job defines a single recurrent action, with simple or complex strategies for execution. Actions may include HTTP requests or storage queue requests.

 

How to create Scheduler Job?


 

Step 1: create a job collection


Note: this will create a standard job collection. If you need to change it to free plan (which allows only 5 jobs maximum) use the Scale configuration tab.

 

Step 2: Now you can choose the action type

  • Invoking a Web Service over HTTP/s

    OR

  • Post a message to a Windows Azure Storage Queue

 

 

 Selecting Action Type:


Invoking a Web Service over HTTP or HTTS will enable to choose http methods.


 

Post a message to a Windows Azure Storage Queue will enable inputs to enter storage and queue access details.


 

You can use existing Azure Resources as well.


 

Step 3: selecting schedule

You can run as a one time job by

  • Running it immediately by selecting “Now”

Or

  • In a specific time


 

OR you can create a recurring job


 

The job status can be monitored via the portal


The queue message will be created in the queue in the specified schedule

Following is a job with a message viewed using storage explorer.


 

Creating a Scheduler may fail!

Creating the scheduler collection may fail if the queue name is not provided properly.

NOTE: “Queue name must be 3-63 characters in length may contain lower-case alphanumeric characters and dashes.”

< Back to Inroduciton

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: