The site warm-up request failed with response code: 'ServiceUnavailable'.
When deploying a project from Visual Studio Professional 2022 (64-bit) version 17.13.3 to a deployment slot with the following settings:
Configuration: Release
Target Framework: .NET 9.0
Deployment Mode: Framework
Target Runtime: win-x64
The message "Web App has been successfully published" appears, but shortly after, the message "The site warm-up request failed with response code: 'ServiceUnavailable'" almost always appears.
If I attempt the deployment again without giving up, this message does not appear the second time. In other words, every time I deploy, I need to attempt the deployment twice for it to be successfully completed.
It seems there might be a timing issue with the site's warm-up process. If there are any solutions for improvement, I would appreciate your guidance.