I have a hosted blazor webapp and webjob. It deploys as expected when publishing from visual studio. However, when deploying from an DevOps release pipeline, although the task is apparently successful, the site is not left in a workable state, meaning: Static files are available (ie the blazor wasm) but calls to the API fail with 405 (or similar). It appears that the WebApp part of the site is not starting.
So my question is.... "Where can I find a log file that describes any startup errors?"
What have I tried?
- I have tried configuring the DevOps pipeline to use alternate methods (WebApp, Zip Package etc). The wwwroot folder contains all the files as expected in each scenario.
- I have downloaded the Kudu dump. There are lots of files or folders. I'm not sure what I'm looking at. Nonetheless I cannot find any obvious errors, though neither can I find "startup.log" or similar
After downloading a Kudo dump, where can I find the log file that describes any errors during startup?
You can find startup errors in the
Log Streamsection of your Web app.Enable Application logging
In Log Stream ,check the Start up logs
Development Tools=>Advanced Tools=>Kudu=>Go, then downloadDiagnostic dumpfrom theTools.Open the Dump and visit => Log Files => Http => Raw logs and check the logs.
My deployed files
Zip push Deployoption in Tools and also check your files.I created one
Blazor appwithwebjoband then deployed it toAzure app servicevia Release and YAML pipeline.In your release pipeline you can find the logs here
YAMLpipeline, where you can check out all the files correctly and publish it as an artifact while deployment.WebjobandBlazor app.yamlpipeline and used it as an artifact in the release pipeline.My YAML pipeline script:-
While running the above pipeline checkmark enable diagnostic logging and run.