Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DiagnosticMonitor in Azure Web Site

Can you use the Azure DiagnosticMonitor in an Azure Web Site (not a web role) ? Or does it need a compute role?

like image 678
Matt Randle Avatar asked Sep 17 '12 10:09

Matt Randle


2 Answers

No,

Azure DiagnosticsMonitor is only for Web/Worker Roles. Diagnostic in Azure WebSite is common as for any web application. As Azure WebSites use persistent storage, you can safely write a log file (having in mind you are using multi-threaded environment like in any ASP.NET/or any web application). More, you can configure additional diagnostics options in the "Configure" tab of the WebSite:

Azure WebSites Diagnostics

You can turn on Detailed Error Messages + Failed Request Tracing. You can download the Failed Request logs from the FTP server of your site.

You can use log4net for detailed error/trace logging in your web application (if it is ASP.NET). Some tutorial here.

like image 149
astaykov Avatar answered Oct 20 '22 00:10

astaykov


No, You can't use Windows Azure Diagnostics (DiagnosticsMonitor) in an Azure Website. You would need to use a compute role for that.

like image 40
Gaurav Mantri Avatar answered Oct 20 '22 01:10

Gaurav Mantri