I've got an asp.net core web app that runs, quite hapily (most of the time), in Azure as an windows app service.
However, we sometimes see the web app restarts occaisionly - sometimes in bursts, say 10 in a minute, and we're not sure why this is happening. We know it's probably not something on Azure's side, becuase our web jobs continue to run and don't restart.
My theory is that something pretty bad happens in the web app, and crashes the dotnet process, so it restarts. However I can't see any evidence of this happening - no event logs, or anything that I can analyse. Is it possible to add logging in azure, so that if something does take down dotnet and cause it to restart, we can find out more?