Hi @Vishu
Migrating a Spring cron job from an on-premises environment to Azure App Service requires adjustments, as Azure App Service does not provide traditional scheduled job functionality.
- Migrate your cron job logic into an Azure Function. With Azure Functions, you can run code using a timer trigger without worrying about the underlying infrastructure.
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=python-v2%2Cisolated-process%2Cnodejs-v4&pivots=programming-language-csharp - For users wishing to remain on Azure App Service, WebJobs is also an option. Tasks can be executed in the background and set to run on a schedule, similarly to cron jobs. Your Spring application can be deployed as a Web Job.
- Logic Apps in Azure can achieve more complex workflows by creating scheduled tasks that incorporate multiple services.
references:
https://learn.microsoft.com/en-us/azure/app-service/webjobs-create?tabs=windowscode