Which command should you use first?

Posted by: Pdfprep Category: AZ-204 Tags: , ,

You need to investigate the http server log output to resolve the issue with the ContentUploadService.

Which command should you use first?
A . az webapp log
B . az ams live-output
C . az monitor activity-log
D . az container attach

Answer: C

Explanation:

Scenario: Users of the ContentUploadService report that they occasionally see HTTP 502 responses on specific pages.

"502 bad gateway" and "503 service unavailable" are common errors in your app hosted in Azure App Service.

Microsoft Azure publicizes each time there is a service interruption or performance degradation.

The az monitor activity-log command manages activity logs.

NOTE: Troubleshooting can be divided into three distinct tasks, in sequential order:

✑ Observe and monitor application behavior

✑ Collect data

✑ Mitigate the issue

Reference: https://docs.microsoft.com/en-us/cli/azure/monitor/activity-log

Leave a Reply

Your email address will not be published.