Hi @YogeshMct we are sorry to hear you're facing this issue. Do you have " Always on" enabled? the “Always On” setting is enabled for your App Service. This prevents the app from going idle and helps maintain a persistent connection. You can enable this from the Azure Portal: Navigate to your App Service > Configuration > General settings > Always On.
Here are some additional things you can try to troubleshoot:
- If you’re using a lower-tier App Service Plan, consider scaling up to a higher tier. This can provide more resources and stability for your app.
- Use the App Service diagnostics tool to identify any potential issues. Navigate to your App Service in the Azure Portal > Diagnose and solve problems > Review the “Configuration and Management” and “Availability and Performance” options.
- Enable application logging, web server logging, and detailed error messages to get more insights into what’s causing the connection drops. You can do this from the Azure Portal under App Service logs.
- If the in-browser SSH session is unstable, consider using remote SSH. You can create a remote connection using the Azure CLI:
This command sets up a TCP tunnel, allowing you to connect to your app’s container from your local machine.az webapp create-remote-connection --subscription <subscription-id> --resource-group <resource-group-name> -n <app-name>
- Lastly, try restarting your web app. Sometimes simply restarting the web app can resolve transient issues.
Hope that helps.
-Grace