After you enable Windows Azure Diagnostics with Web and/or Worker Role please make sure to use correct Windows Azure Storage account and key. After it, please run your web or worker role in compute emulator and then verify at Windows Azure Storage for any diagnostics details. This way you can assure the Azure diagnostics is working within the role and diagnostics data is logged at Windows Azure Storage.
Here are a few things you can verify:
1. Now after you deploy your application to Windows Azure and experience problems with Windows Azure Diagnostics, you can RDP to your Windows Azure machine to verify DiagnosticsAgent.exe is running.
2. While you are still in your Windows Azure VM please look at the following folder for <RoleHostProcessName>.log for any error with Windows Azure Diagnostics:
3. Windows Azure Diagnostics use Blob Storage and Table Storage so it is always good to check if Storage Emulator is working correctly or not. Please start your Azure Storage already before starting the debugging process using:
4. In your development machine please try editing your service configuration to target a real storage account for "Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" setting.
5. Please make sure the storage account is not set to "UseDevelopmentStorage=true".
6. Check the blobs in the wad-control-container blob container in the diagnostics storage account.
7. Check the logs in the WADDiagnosticInfrastructureLogsTable table in the diagnostics storage account and filter on DeploymentId GUID.
8. A common problem is not querying the diagnostics storage correctly, thus returning no results and assuming that diagnostics are not being captured.
9. If you have multiple instances and only a few of them aren’t transferring diagnostics correctly, you can try to Reimage the VM from the Management Portal. This might fix the issue, but then you will lose the ability to determine root cause for why the problem was happening. This should be used as a last resort.
If you still see the problem please contact Windows Azure Support Team @ https://support.microsoft.com/oas/default.aspx?gprid=14928&st=1&wfxredirect=1&sd=gn
Suggest Tools to Access Azure Diagnostic data from Windows Azure Storage:
- Azure Storage Explorer @ http://azurestorageexplorer.codeplex.com/
Thanks Karthikeyan!! I am glad you liked the post.