Robert Riley
Robert Riley

Reputation: 406

503/417 errors on Azure webapp deployment

I have deployed an Azure Webapp via a slot-swap deployment in ADO with an ARM Template. The App Service Plan is "Always-On".

Every once in a while the app fails to swap (thus the deployment fails). The message is below:

##[warning]Error: Failed to update deployment history. Service Temporarily Unavailable (CODE: 503)

##[error]Error: Failed to swap App Service 'name' slots - 'Slot' and 'production'. Error: ExpectationFailed - Cannot swap site slots for site 'name' because the 'Slot' slot did not respond to http ping. (CODE: 417)

This is the result after 30min of waiting. When it is successful, it only takes a few minutes. More frustrating is the fact that the web is not actually down, it's working fine and not throwing any exceptions or 5xx

Upvotes: 2

Views: 2311

Answers (1)

SuryasriKamini-MT
SuryasriKamini-MT

Reputation: 905

Turning off and turning back on the 'Auto-Swap' is one approach that you can try.
'Auto-Swap' can be turned on and off by going to 'App Service' > 'Deployment Center' >'Slot' > 'Configuration'.
enter image description here Also, please refer the below links Troubleshoot swaps , Troubleshooting steps to solve "502 bad gateway" and "503 service unavailable" errors

Upvotes: 1

Related Questions