I had two scheduled jobs running in my developer program benefit subscription. I had set them up originally using the classic portal. I set them to run every hour since I am on Free Tier. Everything was working fine until I had to redeploy the code (console applications)
First problem - I could not find a way to easily update the code for the scheduled jobs so I deleted them and recreated them I tried to recreate them from the portal, first by creating the WebJob and then by going to the scheduled jobs collection and creating a schedule for the web job.
However each time it runs, it fails with the following error
Http Action - Response from host 'mysite.scm.azurewebsites.net': 'Unauthorized' Response Headers: Date: Thu, 16 Mar 2017 04:07:00 GMT
Server: Microsoft-IIS/8.0
WWW-Authenticate: Basic realm="site"
Body: 401 - Unauthorized: Access is denied due to invalid credentials.....
And some other html stuff unrelated to the error
I tried also to deploy the job directly from Visual Studio 2015 (latest update) however the same result occurs, running the job fails with the same error.
It is my understanding that even on free tier I should be able to run a scheduled job (5 of them) every hour.
Why is it failing and complaining about credentials?
EDIT: The job runs from App Service - WebJobs so there's nothing wrong with the job itself, the code executes correctly, I just can't get it to run from the Scheduler.
Authorization
header in the scheduler job? It needs to containBasic <deployment credentials in base 64>
where you need to put the deployment username and password concatenated with a colon:
(<username>:<password>
) and base 64-encode it. – juunasAuthorization
and value toBasic <base 64-encoded string>
. – juunas