Question 101 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 101 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

HOTSPOT - You plan to deploy a web app to App Service on Linux.

You create an App Service plan.

You create and push a custom Docker image that contains the web app to Azure Container Registry.

You need to access the console logs generated from inside the container in real-time.

How should you complete the Azure CLI command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

Answer Area

az webapp log |W —name Contosoweb —resource-group ContosoDevRG

config
download
show
tail
lw filesystem
--web-server-logging
--docker-container-logging
|--application-logging
az LY log |W —name ContosoWeb —resource-group ContosoDevRG
fwebapp config
jacr download
aks show
tail

Explanations

Answer Area

az webapp log W —name Contosoweb —-resource-group ContosoDevRG
config
download
show
tail
YW filesystem
—-web-server-logging
-docker-container-logging
—application-logging
az V_ log V -name ContosoWeb --resource-group ContosoDevRG
webapp config
jacr download
jaks show
tail

Box 1: config - To Configure logging for a web app use the command: az webapp log config Box 2: --docker-container-logging Syntax include: az webapp log config [--docker-container-logging {filesystem, off}] Box 3: webapp - To download a web app's log history as a zip file use the command: az webapp log download Box 4: download - Reference: https://docs.microsoft.com/en-us/cli/azure/webapp/log.