Hi Developer,
I think Always on feature in your app service is not turned on. Websites unload if they sit idle for too long, which helps the system conserve resources.
Always On (available for Standard tier websites) keeps the app loaded even when there's no traffic. If you are not using Standard tier, it's turned off by default. So please check it.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Jason Pan