@Anonymous Thanks for the response. In that case, I believe we'll need to troubleshoot the 503
error with the App Service first.
"503 service unavailable" errors are often caused when there are issues with the application, such as requests taking a long time, application using high memory/CPU, application crashing due to an exception etc.
The simplest check would be to try restarting your web app to see if it helps. Or, if you are on the Free tier, it could be that your app has exhausted its resources and there is a need to scale up the App Service Plan to a slightly higher one, like a Basic/B1 compute tier, say.
If that doesn't help, you could use the diagnostics tool that Azure App Service provides. When you do run into issues with your app, the diagnostics tool will point out what’s wrong to guide you to the right information to more easily and quickly troubleshoot and resolve the issue without needing any additional configuration. To access App Service diagnostics, navigate to your App Service app in the Azure portal, and click on Diagnose and solve problems in the left navigation.
If the issue still persists, you could look at your app's metrics like CPU Time, average memory working set, response times etc. to understand the pattern of the error.
In the case where there is not enough data available, you could enable diagnostics logging for you app to assist with debugging, or instrument your application with Azure Application Insights for enabling detailed performance monitoring.
For more details about each of the above approaches, refer to this article. Hope this helps, do let us know if you have further questions.
----------
If an answer is helpful, please "Accept answer" and/or "Up-Vote" which might help other community members reading this thread.