A team is troubleshooting an Azure App Service web application named myApp. They want to configure the application to write diagnostic trace messages to the local filesystem and view the incoming log messages live in their terminal.
Which two Azure CLI commands should they run?
- az webapp log config --name myApp --resource-group myRG --application-logging trueCevap
- az webapp log tail --name myApp --resource-group myRGCevap
- Caz monitor app-insights query --apps myApp --analytics-query "traces"
- Daz keyvault secret show --name AppInsightsKey --vault-name myVault
Cevap
The commands to enable application logging to the filesystem and start streaming the logs are: `az webapp log config --name myApp --resource-group myRG --application-logging true` and `az webapp log tail --name myApp --resource-group myRG`.
To view live diagnostic trace messages on the local filesystem of an App Service, you must first enable filesystem-based application logging using the config command, and then initiate the log stream using the tail command.
Adım Adım Çözüm
Anahtar Kavram
Built-in diagnostic logging and log streaming in Azure App Service via Azure CLI
Tahmini Süre:1m 0s