Cannot deploy my app services: HTTP Error 503. The service is unavailable.

Anonymous
2021-05-27T21:09:51.597+00:00

I got an error on uploading the deployment ZIP https://${appName}.scm.azurewebsites.net/api/zipdeploy?isAsync=true

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,746 questions
{count} votes

3 answers

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,466 Reputation points
    2021-05-31T19:15:26.857+00:00

    @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.

    2 people found this answer helpful.
    0 comments No comments

  2. Syed Farooq 6 Reputation points
    2022-11-19T22:41:54.12+00:00

    Having same 503 error. App deploys fine but doesnt load. in my casse I have separate backend and frontend deployed to separate app services within the same App Service Plan. its B1 and has enough processing space and storage available.

    1 person found this answer helpful.
    0 comments No comments

  3. Shahim 0 Reputation points
    2023-10-17T13:46:13.3533333+00:00

    @Tony Son, it seems like you're encountering a 503 error when trying to upload your deployment ZIP. This error can be a bit tricky, but I have a suggestion for you. Since it's happening in both cases, and you're using Node.js to automate it, there might be a few things to check.

    App Service Resources: Ensure that your Azure App Service is properly resourced. Sometimes, a 503 error can occur if your app is running out of resources. Consider scaling up to a higher tier.

    Diagnostics: Azure App Service provides diagnostics tools to help you troubleshoot issues. You can access this in the Azure portal under "Diagnose and solve problems." It can often pinpoint what's causing the 503 error.

    Application Insights: If you're not getting enough data from diagnostics, consider using Azure Application Insights for more detailed performance monitoring.

    Metrics: Check your app's metrics like CPU time, memory usage, and response times. This can provide valuable insights into the issue.

    I hope this helps you in resolving the 503 error. If you have more questions or need further assistance, feel free to ask.

    Troubleshooting Windows Server Errors and Solutions

    Good luck!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.