You are troubleshooting a startup failure for a web application hosted on a Linux-based Azure App Service. You need to enable container logging, view the logs in real-time to identify the exception, and minimize administrative overhead. Move the actions from the list of actions to the answer area and arrange them in the correct order.
- 1Run the az webapp log config command with the --docker-container-logging filesystem parameter.
- 2Run the az webapp log tail command.
- 3Access the web application URL in a web browser or send an HTTP request to the endpoint.
- 4Review the streaming stdout and stderr console output in the CLI terminal.
Answer
First, run the az webapp log config command with the --docker-container-logging filesystem parameter. Second, run the az webapp log tail command. Third, access the web application URL. Fourth, review the streaming stdout and stderr console output in the CLI terminal.
To diagnose a startup failure on a Linux App Service, you must first enable container logging by running the command with the filesystem parameter. Once enabled, starting the log stream with the tail command ensures you can capture live output. Accessing the web application triggers the startup or request cycle, producing log entries that are then piped directly to the console for analysis.
Step-by-Step Solution
Key Concept
Configuring container logging and streaming logs in real-time using Azure CLI for Linux Azure App Service.