Hi, I'm having some trouble figuring out why a deployment for an Azure Web App fails.
I've tried deployment to a container app, and an app service, with both GitHub actions workflow and through a web deploy using pubxml. My application runs fine and as expected on both Debug and Release builds, and I have no errors, whatsoever. Aside from some warnings about declaring non-nullable props with ? or declaring a default.
I checked logs on my local builds, and the application events using Event Viewer, and found no errors.
However, when publishing, the publish succeeds, and fails at the end with 'InternalServerError'. See below:
Publish Succeeded.
Web App was published successfully https://{myAddressHere}/
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 9:09 PM and took 02:59.481 minutes ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
========== Publish completed at 9:09 PM and took 02:59.481 minutes ==========
Installation of Web App Site extension Microsoft.AspNetCore.AzureAppServices.SiteExtension is in progress...
Successfully installed Web App extension Microsoft.AspNetCore.AzureAppServices.SiteExtension
Restarting the Web App...
Successfully restarted Web App.
A call to warmup your site failed with response code: 'InternalServerError'.
My first thoughts were to check Azure App Service configurations, which I did, and at least as far as I can tell there's no configuration that would cause my app to not run, or to throw an error. The logs on the Azure portal do not show me anything particularly useful, since those are locked behind an enterprise tier. My configuration on the application itself is accurate, and matches what the app service expects.
So, I don't know. I'm kind of stumped. Wondering if anyone can think of some edge case where this happens? Or perhaps point out something really obvious that I'm just overlooking?