Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hello @Saranga,
Thank you for submitting your question on Microsoft Q&A.
The HTTP Error 503, or “Service Unavailable” indicates that the server is temporarily unable to handle the request.
The cause of these errors is often an application-level problem such as:
- Requests are taking a long time.
- The app is using high memory or CPU.
- An exception is preventing the app from responding.
Troubleshooting consists of three tasks, in sequential order:
- Observe and monitor application behavior.
- Collect data.
- Mitigate the problem.
Start by observing and monitoring your application’s behavior using the Azure portal. Look for any unusual metrics like CPU time, memory working set, and average memory working set to identify any performance issues. You can access these metrics go to the Azure portal, navigate to your app, and select Monitoring > Metrics.
To address the HTTP Error 503, you should first collect data on what might be causing the issue. Azure App Service provides diagnostics tools that can help you identify problems. You can access these tools through the Azure portal by selecting Diagnose and solve problems in your App Service app. Additionally, using the Kudu debug console can provide insights into your application’s environment and help you troubleshoot further. The Kudu dashboard allows you to view environment settings, logs, and even run commands to gather more information about the state of your app.
After collecting data, you can take steps to mitigate the problem. This might include scaling your app to a higher pricing tier for better performance, enabling auto-healing to recycle the worker process automatically, or simply restarting your app. Restarting can often resolve temporary issues quickly. You can manage these actions directly from the Azure portal, where you can stop or restart your app as needed. By following these steps, you can effectively troubleshoot and resolve the HTTP Error 503 on your site.
Reference :
Kindly let us know if the above comment helps or you need further assistance on this issue.
Please "upvote" if the information helped you. This will help us and others in the community as well.