PrepAway - Latest Free Exam Questions & Answers

Which Windows Power Shell command should you execute?

You manage an Azure Web Site named contosoweb. Logging is enabled for contosoweb.
You need to view only errors from your log files in a continuous stream as they occur.
Which Windows Power Shell command should you execute?

PrepAway - Latest Free Exam Questions & Answers

A.
Get-AzureWebSiteLog -Name contosoweb -OutBuffer Error

B.
Save-AzureWebSiteLog -Name contosoweb -Output Errors

C.
Get-AzureWebSiteLog -Name contosoweb -Tail –Message Error

D.
Get-AzureWebSiteLog -Name contosoweb -Message Error

Explanation:
Example
This example starts log streaming and show error logs only.
Windows PowerShell
C:\\PS>Get-AzureWebsiteLog -Tail -Message Error

http://msdn.microsoft.com/en-us/library/dn495187.aspx


Leave a Reply