Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-204 topic 5 question 12 discussion

Actual exam question from Microsoft's AZ-204
Question #: 12
Topic #: 5
[All AZ-204 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer:
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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
granitoula
Highly Voted 3 years, 4 months ago
It never said dowload, it says "access real time" Will go with TAIL: https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az_webapp_log_tail
upvoted 145 times
SachinV
4 months, 1 week ago
Agreed it's correct, in Nov182023, scored 962
upvoted 1 times
...
Kellyb85
3 years, 4 months ago
I think download in the question--> You plan to deploy a web app to App Service on Linux. az-webapp-log-tail --> https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az_webapp_log_tail --> This command may not work with web apps running on Linux.
upvoted 6 times
TakumaK
2 years, 10 months ago
See the MSDN doc again. It obviously says the download is also "This command may not work with web apps running on Linux.". And the question clearly mentions "in real-time". Ok. let's think do you want to download the log zip file in real time? How?
upvoted 2 times
...
Ave
3 years, 4 months ago
It says the same for download.
upvoted 10 times
...
iiiihhhh
3 years, 2 months ago
There is a request for clarification on github: WebApp:az webapp log tail and insufficient information about linux https://github.com/Azure/azure-cli/issues/16203 But there is no answer.
upvoted 1 times
...
...
Adol
3 years, 2 months ago
You're right and it's tail according to a course in Udemy for the exact question
upvoted 9 times
AfroYeti
3 years, 2 months ago
No see, that interesting becasue there is a notice on the port itself and it reads "tail might not be available for linux containers" Now the question is, is that answer the "safe" answer based on the possibility that it might not be available?
upvoted 1 times
DSK
3 years, 1 month ago
The suggested download command will not work because download needs a local file system location.
upvoted 1 times
...
...
...
monniq
3 years, 1 month ago
It says "This command may not work with web apps running on Linux." on https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az_webapp_log_tail So, it can't be the answer.
upvoted 8 times
jay158
2 years, 9 months ago
"This command may not work with web apps running on Linux." is removed https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az_webapp_log_tail. Warning is only for 'az webapp log download'
upvoted 6 times
...
Robert12345Robert
2 years, 8 months ago
az webapp log download Download a web app's log history as a zip file. This command may not work with web apps running on Linux. It is download that may not work, not tail.
upvoted 8 times
...
rdemontis
3 years ago
I think TAIL is correct because it is the only way to access console log in real time. The sentence "This command may not work with web apps running on Linux" is present for every option, even for download, see https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az_webapp_log_download
upvoted 4 times
...
...
...
RaviKS
Highly Voted 3 years, 2 months ago
Correct Answers are config docker-container-logging webapp tail
upvoted 70 times
...
FeriAZ
Most Recent 2 months ago
TAIL az webapp log tail -n ContosoWeb -g ContosoDevRG --docker-container-logging The tail command is used to view streaming log data in real-time. This is likely what you need for accessing logs as they are generated.
upvoted 1 times
...
CarlosTheBoldest
3 months, 2 weeks ago
I got this question on my exam, 2023Dec, go with what I remember was the most voted answer. Score 902, most of the questions were here, slightly different on wording because the Azure Ad <-> Entra Id change. Case was City Power & Light. Good luck! Important tip, you have access to microsoft learn during the exam!
upvoted 1 times
...
juanckar
8 months, 3 weeks ago
This was on the exam (July 2023). Went with highly voted. Scored 917
upvoted 5 times
...
JH81
9 months ago
Got this on 6/28/2023 and passed with 850. Went with highly voted answer.
upvoted 1 times
...
ExamDev
9 months, 1 week ago
Ok we got Linux and documentation says: - az webapp log download Download a web app's log history as a zip file. !!! This command may not work with web apps running on Linux. !!! https://learn.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az-webapp-log-download
upvoted 1 times
...
Vmwarevirtual
10 months ago
Box 1: config Box 2: --docker-container-logging Box 3: webapp Box 4 : Tail Question appeared in the exam I took at 27/May 2023
upvoted 3 times
...
AzBeginner
10 months, 1 week ago
On Exam : 22 May 2023
upvoted 2 times
...
aragones
10 months, 3 weeks ago
Got this 2023-05-12. Had cases: case: You need to configure authorization. case: You need to ensure the app does not time out and processes the blob data case study: VanArsdel Inc Canada
upvoted 2 times
...
uffuchsi
1 year, 1 month ago
To access the console logs generated from inside the container, first, turn on container logging by running the following command: az webapp log config --name <app-name> --resource-group <resource-group-name> --docker-container-logging filesystem Once container logging is turned on, run the following command to see the log stream: az webapp log tail --name <app-name> --resource-group <resource-group-name> If you don't see console logs immediately, check again in 30 seconds. To stop log streaming at any time, type Ctrl+C. https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#access-diagnostic-logs-1
upvoted 4 times
...
elequiel
1 year, 5 months ago
Got it in exam 20/10/2022
upvoted 4 times
...
Knightie
1 year, 7 months ago
No Download, but Tail https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az-webapp-log-tail
upvoted 1 times
...
mahidharKollipara
1 year, 7 months ago
it shold be tail. Download does not work in linux.
upvoted 1 times
...
Eltooth
1 year, 9 months ago
config docker-container-logging webapp tail
upvoted 2 times
Eltooth
1 year, 9 months ago
https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az-webapp-log-config
upvoted 1 times
...
...
Sandeep12093
1 year, 9 months ago
We don't want to download.also it said real time so definitely answer is "tail"
upvoted 1 times
...
petitbilly
2 years ago
Got it in exam 03/22
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...