Prevent web app from being idled out due to inactivity

Harsh P 0 Reputation points
2023-09-29T01:18:21.61+00:00

I'm running an application on B1 web app plan. However, the application is idling out after about 20 mins of inactivity despite "Always On" being enabled in the general settings. Please provide suggestions. Thank you!

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
851 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 20,856 Reputation points
    2023-09-29T10:48:09.1566667+00:00

    @Harsh P Thanks for reaching here!

    If you have enabled "Always On" in the general settings of your web app, it should prevent your application from being idled out due to inactivity. However, there are a few other things you can check to ensure that your application stays active:

    1. Check the "Application Settings" of your web app to make sure that the "ARR Affinity" setting is turned on. This setting ensures that subsequent requests from the same client are routed to the same instance of your web app, which can help keep your application active.
    2. Check the "Diagnostic Logs" of your web app to see if there are any errors or warnings that might be causing your application to idle out. You can access the diagnostic logs from the "Monitoring" section of your web app in the Azure portal.
    3. You may leverage Diagnose and solve problems page of your webapp

    244763-image.png

    You can use search bar in Diagnose and solve problems Always on Check and validate whether Always on is enabled or not.

    244667-image.png

    1. You can also check whether Always On is enabled or not through using kudu console under environment settings.

    Reference:

    Let us know.

    1 person found this answer helpful.
    0 comments No comments