Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An error occurred while creating the WebJob schedule

I an trying to publish my website along with few WebJobs but after the website and the jobs are created on the Azure Website, I see an error on the VS.NET 2013 that says:

Error   948 An error occurred while creating the WebJob schedule: No website could be found which matches the WebSiteName [mysitename] and WebSiteUrl [http://mysitename.azurewebsites.net] supplied 

my website has 2 WebJobs, 1 that runs continuously and it's created and running, but the one that needs to be triggered on a schedule is having this problem.

Any ideas as to what may be wrong here?

Edit 1

Just wanted to add that the Scheduled Job is getting created as "On Demand"

here is the settings for publishing I am using :

{   "$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",   "webJobName": "ArchiveShipments",   "startTime": "2015-01-11T00:00:00+05:30",   "endTime": null,   "jobRecurrenceFrequency": "Day",   "interval": 1,   "runMode": "Scheduled" } 

BTW after i applied AzureSDK. 2.5 I don't see any error on publishing, but the scheduled WebJob is not getting created.

like image 884
Kiran Avatar asked Jan 15 '15 13:01

Kiran


People also ask

How do I create a WebJob in Visual Studio?

In Solution Explorer, right-click the project and select Publish. In the Publish dialog box, select Azure for Target, and then select Next. Select Azure WebJobs for Specific target, and then select Next. Above App Service instances select the plus (+) button to Create a new Azure WebJob.

How do I change my Azure WebJob schedule?

To change the schedule, or to Modify the CRON value just use the App Service Editor to modify the WWWROOT/App_Data/jobs/triggered/YOUR_WEBJOB_NAME/settings. job file; By the time of writing, App Service Editor is still in preview but it will work.


1 Answers

For me this happened when I switched from deploying to one Azure account to another account. In Visual Studio, open/expand the Server Explorer side-window, right click on Azure, select "Connect to Microsoft Azure Subscription...". You'll be asked to logout and login with new credentials. enter image description here

like image 135
Clay Lenhart Avatar answered Nov 12 '22 04:11

Clay Lenhart