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?

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?

A.
Get-AzureWebSiteLog -Name contosoweb -OutBuffer Error

B.
Save-AzureWebSiteLog -Name contosoweb -Output Errors

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

D.
Get-Azure WebSiteLog -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

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



Leave a Reply 0

Your email address will not be published. Required fields are marked *