I deployed a WebJob the suggested way using Visual Studio, right-click onto the console project, selecting "Publish as Azure Webjob" and going through the settings.
I selected a scheduled plan what caused the file "webjob-publish-settings.json
" to be created in the Properties-Folder with the following content:
{
"$schema": "http://schemastore.org/schemas/json/webjob-publish-settings.json",
"webJobName": "TestCredentials2",
"startTime": "2016-04-05T01:00:00+01:00",
"endTime": "2016-04-12T00:00:00+01:00",
"jobRecurrenceFrequency": "Minute",
"interval": 3,
"runMode": "Scheduled"
}
While the deployment worked, the webjob is in the state "On Demand". The Webjob is run once when I start it manually from within the Azure Portal but does not restart ever automatically.
I also tried to add a "settings.job
" to the root of my project (with the setting "Copy if newer"):
{ "schedule": "0 /5 * * * *"
}
Still no difference in the behaviour, but also no error message.