Search code examples
azureazure-functionsazure-function-app

Azure function deploy error : 503 Temporarily Unavailable


I have a python function app created using ARM template. When i tried to deploy a function using the azure devops pipeline, I am facing the below error,

"Failed to deploy web package to App service. Service Temporary unavailable Code 503”


Solution

  • Usually the 503 error may be due to the server being overloaded or down for maintenance.

    As Shariful said, the first thing you should check is that if your Function started or not.

    If your Function prepared already and you didn't try too many times for deployment (if you do, try deploy later), you could consider another case that your server protection policy is improper.

    For example, if your server's access policy was tweaked to a single IP, limited to 10 requests per minute, and you usually click more than 100 connections per minute, the 503 Service Temporary unavailable came up.

    Then you should changed the single IP access limit from 10 to more than 100, the 503 error would disappear.

    Here is an article about finding the reasons of 503 Service Temporarily Unavailable, you can have a look.