azure-diagnostics

Azure SDK, Trace.Information and WADLogsTable

大城市里の小女人 提交于 2019-12-10 14:20:02
问题 I am writing a new Cloud Service in .NET using Azure SDK 2.5. I'm aware that there have been some significant changes to diagnostics with the 2.5 SDK rekesae. Where I am getting conflicting information is whether or not I can still use Azure Diagnostics to capture Trace.* output to WADLogsTable in Azure Table Storage? I'm aware that I can use ETW as an alternative, but that's now what I'm asking for. According to this article I can still use Trace to capture my logs with Azure Diagnostics 1.3

Could not load file or assembly 'Microsoft.WindowsAzure.Diagnostics' or one of its dependencies

给你一囗甜甜゛ 提交于 2019-12-09 15:54:24
问题 My system crashed a couple of days ago, since then when I try to debug local Azure environment I get this error 'Could not load file or assembly 'Microsoft.WindowsAzure.Diagnostics' or one of its dependencies'. I have reinstalled the following (Windows Azure tools for MS VS 2012 June 2012 sp1, Windows Azure emulator - June 2012, Windows Azure Librarires for .net - June 2012). Still having the same issues, any suggestions. === Pre-bind state information === LOG: User = ........... LOG:

Service Fabric ETW Logs are always incomplete

一笑奈何 提交于 2019-12-08 00:23:07
问题 We have just started using Service Fabric and the only pain point so far has been ETW with WAD, which always seems to log out with missing data (message, eventmessage.) Our experience so far has that it always works in visual studio (sometimes you have to add the provider name) and that it rarely works when deployed to a cluster in Azure. When it does work in Azure - versioning & updating a function on the event source or adding another will then log out with empty data points. This is the

Enable Azure Website Application Diagnostics

白昼怎懂夜的黑 提交于 2019-12-07 22:13:12
问题 I have a Windows Azure Website (built with ASP.NET Web Pages), and in the configuration have enabled "Application Diagnostics" for both Blob storage and file storage: I've then added some Trace statements to a Razor page to test it out @{ System.Diagnostics.Trace.TraceInformation("INFORMATION"); System.Diagnostics.Trace.TraceWarning("WARNING"); System.Diagnostics.Trace.TraceError("ERROR"); } However, this results in no logs at all, either in the file system or the blob. For good measure I

Alerts for exceptions in an Azure worker role

旧街凉风 提交于 2019-12-07 20:50:05
问题 Is there an easy way to send an alert or notification in the Azure Management portal if a worker role throws an exception or has an error? I am using Azure 2.5 I have tracing and diagnostics all set up and can view the logs in the server explorer of Visual studio, but is there anyway to set an alert if for example and error message appears in the logs. I know you can set up alerts for monitoring metrics in the Management portal is there an easy way to add metrics for errors and exceptions? Or

Do Azure Diagnostics run in Azure staging slot?

微笑、不失礼 提交于 2019-12-07 09:00:54
问题 When collecting Azure diagnostic data, does the staging slot also send diagnostic data to the WadPerformanceCounters Table? If so, how can I turn this off? Or how can I differentiate between staging/production when reading the diagnostics. I don't want to display data about our website assuming it's all production when in fact part of it is the staging slot. 回答1: Yes - Windows Azure diagnostics runs in the Production and Staging slots. The only real difference between these two slots is the

Enable Azure Website Application Diagnostics

大兔子大兔子 提交于 2019-12-06 07:53:14
I have a Windows Azure Website (built with ASP.NET Web Pages), and in the configuration have enabled "Application Diagnostics" for both Blob storage and file storage: I've then added some Trace statements to a Razor page to test it out @{ System.Diagnostics.Trace.TraceInformation("INFORMATION"); System.Diagnostics.Trace.TraceWarning("WARNING"); System.Diagnostics.Trace.TraceError("ERROR"); } However, this results in no logs at all, either in the file system or the blob. For good measure I attempted to add various settings to my web.config file (shown below), although from the documentation I

Alerts for exceptions in an Azure worker role

你说的曾经没有我的故事 提交于 2019-12-06 07:23:59
Is there an easy way to send an alert or notification in the Azure Management portal if a worker role throws an exception or has an error? I am using Azure 2.5 I have tracing and diagnostics all set up and can view the logs in the server explorer of Visual studio, but is there anyway to set an alert if for example and error message appears in the logs. I know you can set up alerts for monitoring metrics in the Management portal is there an easy way to add metrics for errors and exceptions? Or someway to get C# exception code to create notifications or alerts in the Azure Management portal? I

Calling Set-AzureServiceDiagnosticsExtension with Role parameter fails

旧街凉风 提交于 2019-12-06 05:09:07
问题 I'm trying to set Azure diagnostics on a deployed cloud service using the Azure Powershell cmdlets and the Set-AzureServiceDiagnosticsExtension command: Set-AzureServiceDiagnosticsExtension -StorageContext $storageContext -DiagnosticsConfigurationPath $diagnosticsConfiguration.FullName -ServiceName $serviceName -Slot Production -Role "MyService.Web"-Verbose Doing so I get the following error Exception: Microsoft.WindowsAzure.CloudException: BadRequest: The extension ID MyService.Web

Why doesn't Windows Azure Diagnostics reliably log?

帅比萌擦擦* 提交于 2019-12-06 03:53:52
问题 We are having problems getting Windows Azure Diagnostics to reliably log. It seems hit-or-miss and we don't understand why. Here's our code that sometimes works, sometimes doesn't: public class WorkerRole : RoleEntryPoint { public override void Run() { Trace.WriteLine("Run() beginning.", LogLevel.Information.ToString()); try { var logic = new WorkerAgent(); logic.Go(false); } catch (Exception err) { Trace.WriteLine(err.ToString(), LogLevel.Critical.ToString()); Run(); } } public override bool