I'm running 4.20 on an Azure Web App service. It appears none of the Scheduled Tasks are running. My main concern is to have Send emails to run according to the schedule tasks. For the sake of testing, the only Task that is enabled is the Send emails task; all other tasks are disabled. In Azure, there's a special feature that you can enable to keep the site alive. I can confirm that my site does not fall asleep.
I already confirmed my Store URL is correct in Admin/Configuration/Stores.
I can confirm that the scheduled tasks run fine on an on-premise IIS server.
Is there anything special I need to do in my Azure environment to get the Schedule Tasks to work.
In Azure, I set up a firewall rule to grant access only my organization's PAT address. This made it impossible for the scheduled task to run against the URL specified in our Store configuration. Once I added the Azure ip address, the scheduled tasks started running.
I set up this firewall rule because our site doesn't officially launch until next month. This was my way of hiding it from the public, but in doing so, it hid the site from the scheduled task as well.
I'm using the web.config in our 4.20 test site to restrict IP addresses: <security> <ipSecurity allowUnlisted="false"> <add ipAddress="xxx.xxx.xxx.xxx" allowed="true" /> <add ipAddress="yyy.yyy.yyy.yyy" allowed="true" /> </ipSecurity> </security>
This works fine except that it stops scheduled tasks from running. I've included 127.0.0.1 and also the ip address of our Azure app service that hosts the site but no joy.