Azure webapp deployment timing out
I've been using ADO pipelines to deploy my web apps for some time now and the AzureRmWebAppDeployment@4
task and deployments usually run in seconds
Yesterday, all of a sudden, deployments started taking 45 minutes and eventually timing out
Digging into the logs, it turns out that during the deployment, the task will try and call the /api/settings
endpoint exposed via Kudu and this was where the timeout was occurring
I checked in the Azure portal and the app was complaining my health checks were unreachable and when I tried to access Kudu in the browser, it timed out there too
There were no logs or further information in the Azure portal and the application logs which are normally pushed to NewRelic were completely missing
I eventually found this post https://stackoverflow.com/a/64562909
Sure enough - scaling the service plan up and then back down fixed the issue
I'm running this webapp with a single instance, which Microsoft doesn't recommend, but it's just a testing environment. My best guess is that this is somehow related as I've not seen it occur for other services that are running multiple instances