How To Create A Scheduled Webjob For SharePoint 2013 Online Using Classic Azure Portal

Introduction

In SharePoint 2010/2013 On premise, we have Timer Jobs, which perform repetitive, scheduled tasks. For example, you may need a timer job to fetch Sharepoint list items and send them as reports on a daily basis. This timer job can be created as a farm solution and can be deployed in SharePoint 2010/2013 On premise Server, whereas in SharePoint Online, you are not allowed to deploy the farm solutions. To overcome this, you can create Azure WebJobs, which act as scheduled timer jobs for SharePoint Online. In my previous article,

You have learned how to create a simple Azure WebJob for SharePoint 2013 Online and publish it directly from Visual Studio.

In this article, you will learn how to create a scheduled WebJob for SharePoint 2013 Online, using aclassic Azure portal. I am having an existing Website in Azure portal, in which I am going to schedule a Webjob.

Prerequisites

  1. Visual Studio 2013 or latest versions.
  2. Office 365 Site. If you don’t have Office 365 site, please try trial version.
  3. Access to Azure portal. If you don’t have Azure account, please try trial version.
  4. How to Create Azure WebJob For SharePoint 2013 Online.

Create the Zip file for your WebJob

  1. In Solution Explorer, right click the project and click “Open Folder in File Explorer”.

    Open Folder in File Explorer
  2. Copy all the output files from bin/Debug or bin/Release folder and create the zip file.

    url
    url

Create a Scheduled WebJob

  1. Navigate to classic Azure Portal.
  2. In the left navigation, click Web apps. Subsequently, click the existing Azure Website.

    WEB APPS

  3. Click WEBJOBS.

    WEB APPS

  4. Click Add.

    Add

  5. Enter Name, upload the zip file which you have created and select Run on a schedule option from How to Run drop down. Select Scheduler Region.

    Region

  6. Define a schedule, based on your requirements, as shown below. Click Complete button.

    Define a schedule

  7. A scheduled WebJob was added successfully, as shown below:

    scheduled WebJob

  8. Click Logs for the newly added WebJob and you are able to see the WebJob run details.

    Logs

Summary

Thus, in this article, you have seen how to create a scheduled WebJob for SharePoint 2013 Online, using classic Azure portal.

Up Next
    Ebook Download
    View all
    Learn
    View all