问题
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
回答1:
For anyone looking for the answer, I have found a couple of reasons people have observed this error:
- You do not have administrator privileges on the subscription you are attempting to publish within.
- You are attempting to set a frequency that is below 1 Hour on a free app service (web app).
来源:https://stackoverflow.com/questions/37009814/403-forbidden-publishing-azure-web-job-from-visual-studio