Finding Container Apps Logs In Azure

Related to Deploying .NET Applications To Azure.

Its supprisingly complicted to find logs in the Azure Portal, perhaps AI will make it better soon.

Find the Revision

  • Resource group -> demo-rg-bb8c7a39-dev -> Container App -> demo-aca-bb8c7a39-dev -> Activity Log -> Create or Update Container App -> Create or Update Container App -> Change history -> properties.provisioningState

Look for image, here the version 965d7c3 is my commit Sha so I can see what code I changed

1
2
old                                                   new
"image": "demoacrdev.azurecr.io/demoacrdev:478d482" "image": "demoacrdev.azurecr.io/demoacrdev:965d7c3"

Then look for latestRevisionName, here kj2aaos is the revision running in Azure

1
2
old                                                   new
"latestRevisionName": "demo-acadev--gw4qzwk" "latestRevisionName": "demo-acadev--kj2aaos"

Find the container logs by Revision

  • Resource group -> demo-rg-bb8c7a39-dev -> Container App -> demo-aca-bb8c7a39-dev -> Monitoring
    • Log stream select the Revision matching kj2aaos, this is going to give you the running container logs, so you can see why you code code sucks :D
    • Logs you can write and execute your own log queries, this is helpful when you have heaps of logs and need to diagnose problems.