Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Microsoft.WindowsAzure.Diagnostics?

Tags:

nuget

azure

Project references to the various parts of the Azure SDK should live in the installation of the Azure SDK, but for some odd reason my code (an Azure Mobile Service) can no longer see Microsoft.WindowsAzure.Diagnostics:

VS2015 references screenshot

I should be able to pick the Microsoft.WindowsAzure.Diagnostics.dll up from my Azure SDK 2.7 installation, but here's what I see in the SDK's 'ref' directory:

File Explorer screenshot

I.e. I just have

  • Microsoft.WindowsAzure.ServiceRuntime.dll
  • WindowsAzureEventSource.dll
  • WindowsAzureTelemetryEvents.dll

but I do not have Microsoft.WindowsAzure.Diagnostics.dll. Interestingly there is an NuGet package called Unofficial.Microsoft.WindowsAzure.Diagnostics, with over 30,000 downloads, which suggests that I am not the only one having this problem.

Where should I reference Microsoft.WindowsAzure.Diagnostics from; is it a DLL somewhere in an SDK or in a NuGet package; where is it?

like image 351
dumbledad Avatar asked Sep 02 '15 08:09

dumbledad


People also ask

How do I check azures diagnostics?

For one or more resources, select Diagnostic settings under Settings on the Azure Monitor menu and then select the resource. For the activity log, select Activity log on the Azure Monitor menu and then select Diagnostic settings.

What is Diagnostics in Windows Azure?

The Azure Diagnostics VM extension enables you to collect monitoring data, such as performance counters and event logs, from your Windows VM. You can granularly specify what data you want to collect and where you want the data to go, such as an Azure Storage account or an Azure Event Hub.

What is Azure Diagnostic extension?

Azure diagnostics extension is an agent in Azure Monitor that collects monitoring data from the guest operating system and workloads of Azure virtual machines and other compute resources.

What is Azure wad?

Windows diagnostics extension (WAD) Write to data to blobs in Azure Storage in addition to tables. Application Insights. Collect data from applications running in your VM to Application Insights to integrate with other application monitoring. See Send diagnostic data to Application Insights.


2 Answers

You can find it here: C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.7\bin\plugins\Diagnostics. With SDK version 2.5, diagnostics is now a plugin.

enter image description here

like image 192
Gaurav Mantri Avatar answered Oct 16 '22 22:10

Gaurav Mantri


It's not in C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.7\ref, but is in

C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.7\bin\plugins\Diagnostics\Microsoft.WindowsAzure.Diagnostics.dll

It was a simple matter of removing the stale reference and re-adding it through the Reference Manager:

VS2015 Reference Manager

like image 38
dumbledad Avatar answered Oct 16 '22 20:10

dumbledad