exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

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:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
granitoula
Highly Voted 4 years, 6 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 152 times
1CY1
9 months, 1 week ago
Did exam 29 July 2024, passed with a score of 907. Most questions from ExamTopics. This question was in there, went with this answer. One case study in ExamTopics and one I had not seen before about a Coffee Shop. No Logic Apps or Kubernetes.
upvoted 3 times
...
SachinV
1 year, 5 months ago
Agreed it's correct, in Nov182023, scored 962
upvoted 1 times
...
Kellyb85
4 years, 6 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
3 years, 11 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
4 years, 6 months ago
It says the same for download.
upvoted 10 times
...
iiiihhhh
4 years, 4 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
4 years, 4 months ago
You're right and it's tail according to a course in Udemy for the exact question
upvoted 9 times
AfroYeti
4 years, 3 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
4 years, 2 months ago
The suggested download command will not work because download needs a local file system location.
upvoted 1 times
...
...
...
...
RaviKS
Highly Voted 4 years, 4 months ago
Correct Answers are config docker-container-logging webapp tail
upvoted 76 times
...
1CY1
Most Recent 11 months ago
config docker-container-logging webapp tail // Full commands. // Setting up logging for the webapp. az webapp log config --name Contosoweb -resouce-group ContsosoDevRG --docker-container-logging filesystem // Start live log tracing for a web app. az webapp log tail --name Contosoweb -resouce-group ContsosoDevRG --docker-container-logging Configure gathering STDOUT and STDERR output from container. Accepted values: filesystem, off
upvoted 3 times
...
FeriAZ
1 year, 3 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 2 times
...
CarlosTheBoldest
1 year, 5 months 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
1 year, 10 months ago
This was on the exam (July 2023). Went with highly voted. Scored 917
upvoted 5 times
...
JH81
1 year, 10 months ago
Got this on 6/28/2023 and passed with 850. Went with highly voted answer.
upvoted 1 times
...
[Removed]
1 year, 10 months 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
1 year, 11 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
1 year, 11 months ago
On Exam : 22 May 2023
upvoted 2 times
...
aragones
2 years 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
2 years, 2 months 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
2 years, 6 months ago
Got it in exam 20/10/2022
upvoted 4 times
...
Knightie
2 years, 8 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
2 years, 9 months ago
it shold be tail. Download does not work in linux.
upvoted 1 times
...
Eltooth
2 years, 10 months ago
config docker-container-logging webapp tail
upvoted 2 times
Eltooth
2 years, 10 months ago
https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az-webapp-log-config
upvoted 1 times
...
...
Sandeep12093
2 years, 11 months ago
We don't want to download.also it said real time so definitely answer is "tail"
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago