Register job scripts


Updated: June 16, 2015

For a JavaScript backend mobile service, scheduled jobs are defined as JavaScript functions that are executed on the server. The name of the function must match the name assigned to the job when it was created. The JavaScript code is set in the portal or in the mobile service’s Git repository.

For a .NET backend mobile service, you define a job as a class in the Visual Studio project that inherits from the T:Microsoft.WindowsAzure.Mobile.Service.ScheduledJob class. This class is then registered in the Management Portal.

By default, new jobs are created in a disabled state. You should enable jobs after you have successfully tested them. Test new jobs by manually by clicking Run Once. Errors in job scripts are written to the logs.

For more information about how to schedule jobs, see Schedule backend jobs in Mobile Services