Azure web stops working

I have a PowerShell script that runs every 5 minutes through the web application functionality of a web application. Along with the Powershell script, I have the settings.job parameter with the following configuration, which makes it tick, and does not configure it as part of the web job configuration:

{ "schedule": "0 */5 * * * *" } 

Work is successful every 5 minutes for several hours, but I notice every morning that stopped. I think maybe as a result of the IIS Recycle (?) The work stops and then I have to manually push it back again.

How will I always work?

0
source share
2 answers

From the documentation in the Create a Scheduled WebJob Using a CRON Expression section:

This method is available for Web applications running in Basic, Standard, or Premium mode, and for this you must enable the Always On option in the application.

Can you check if your web application uses Always On?

+2
source

You can try Azure Automation , it can run PowerShell scripts and run through a schedule

0
source

All Articles