3

I have a web application project deployed to Azure. I have added existing project(console application) as Azure Web Job to web app project and configured the web job to run daily.

But now when I publish the web app, i am getting following error An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden).

Note: The Azure Web App gets published successfully if i configure the web job to run on demand instead of recurring(daily)

Can anyone point what could be the resolution of this error and publish web job successfully?

Thanks in advance

Anna Jhaveri
  • 93
  • 2
  • 9
  • any details for the 403 error? – Kai Zhao May 03 '16 at 18:34
  • 1
    No i get this "An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden)." error in the Error window of visual studio. I have pay as you go subscription, would there be anything related to that? – Anna Jhaveri May 04 '16 at 05:22
  • Just tried your process but didn't encounter this issue, the web app was published successfully after adding console application as web job and configured recurring(daily). I find one similar issue [here](http://stackoverflow.com/questions/31991519/error-creating-webjob-schedule), it suggests change **jobRecurrenceFrequency** in **webjob-publish-settings.json** in the console application, I've checked after configuring the schedule from my side, the jobRecurrenceFrequency's value is **Day**, in case missing anything, I'd suggest you check it from your side. – forester123 May 04 '16 at 07:17
  • I tried deploying from another computer but results into same error. Just want to mention that Azure Web App project is part of SharePoint provider hosted app to be deployed for Office 365, but i dont think that should be a problem. Below is the details of output window log when error occurs: 2>Publish Succeeded. 2>\packages\Microsoft.Web.WebJobs.Publish.1.0.9\tools\webjobs.console.targets(110,5): Error : An error occurred while creating the WebJob schedule: Response status code does not indicate success: 403 (Forbidden). – Anna Jhaveri May 04 '16 at 13:28
  • Hasn't anyone faced this issue? I also updated Microsoft.Web.WebJobs.Publish. package to 1.0.11, but still the error prevails, any one has any ideas how to resolve the issue? – Anna Jhaveri May 05 '16 at 06:46
  • 2
    I got the issue resolved, once i got co-administrator privileges on the subscription. – Anna Jhaveri May 05 '16 at 13:33
  • In my case i just transferred the code to another system and then published and then error got vanished :( . Strange truth. – ManirajSS May 07 '16 at 09:16

1 Answers1

1

For anyone looking for the answer, I have found a couple of reasons people have observed this error:

  1. You do not have administrator privileges on the subscription you are attempting to publish within.
  2. You are attempting to set a frequency that is below 1 Hour on a free app service (web app).
Keith
  • 5,311
  • 3
  • 34
  • 50