Getting Started With Azure Scheduler

In this article, we will see how to get started with Azure Scheduler.

  • Concept
  • Implementation – Creating an Azure Scheduler on Azure Portal.
  • Implementation – Running Azure Scheduler.

Concept - About

  • Azure Scheduler allows you to describe actions to run in the cloud. You can schedule and run the actions automatically. You can schedule the scheduler by using Rest API or Azure PowerShell.
  • Scheduler creates, it maintains and invokes the scheduled work.
  • It basically does not host any workloads or any code.
  • The primary role of this scheduler is to invoke the code hosted anywhere like in Azure, on premises, or with another provider.
  • The major advantage of using it is that you can invoke it via HTTP, HTTPS, a storage queue, a service bus queue, or a service bus topic.
  • It allows you to create, update, delete, view, and manage jobs or a job collection programmatically, by using scripts.

Implementation – Creating an Azure Scheduler on Azure Portal.

  • Sign in to Azure Management portal.
  • Open Azure portal and click on “+”.
  • Type “Scheduler” in the Search box.

    Azure Scheduler

    Azure Scheduler
  • Then, click on "Create".
  • Fill all the required details like Name, Job collection, or create new job in that.

    Azure Scheduler
  • After creating a Job collection, we need to set the action settings.
  • Set Http or Https; set method Get, Post, Put, Delete; and set URL on which website or API you wish to schedule a job.
  • You can also give the customized API which you have created in the URL.
    • Name
    • Subscription - Your Azure subscription
    • Job Collection - Select an existing job collection, or click Create New > enter a name.
    • Next, in Action Settings, define the following values,
    • Action Type - HTTP
    • Method - GET
    • URL - http://www.microsoft.com

      Azure Scheduler
  • Finally, let's define a schedule. The job could be defined as a one-time job, but let’s pick a recurrence schedule.
    • Recurrence -  Recurring
    • Start -  Today's date
    • Recur every - 12 Hours
    • End by - Two days from today's date

      Azure Scheduler
  • Click "Create".
  • Once a job is created, click on job and new window opens with following tabs:
    • Properties
    • Action Settings
    • Schedule
    • History
    • Users

      Azure Scheduler
  • These read-only properties describe the management metadata for the Scheduler job.

History

History tab displays selected metrics for every job execution in the system for the selected job. These metrics provide real -time values regarding your health of your scheduler.

  1. Status
  2. Details
  3. Retry attempts
  4. Occurrence 1st,2nd,3rd
  5. Start time of execution.
  6. End time of execution.

    Azure Scheduler
  • You can also run your job manually by clicking on “Run” button.
  • You can click on run to view its history details, including the whole response for every execution.

This is how you can schedule the job by azure Scheduler.