Unable to Import Diagnostics module

Hi,

I have added worker and web role in my Visual Studio Project. While, modifying the Cloud Configuration Settings there is no 'Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionStrings' settings name . For this I tried to import the diagnostics module in the ServiceDefinition.csdef File of the solution but an error came up saying 'Unable to import the Diagnostics module. No manfiest found'.

Kindly help.

Thanks before hand.

April 27th, 2015 5:36am

Hi,

To collect diagnostics data, you must import the Diagnostics module in the service model for each role from which you want to collect diagnostic data. The module is imported by adding an Import element to the ServiceDefinition.csdef file. The following example shows the Import element defined for a web role:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="MyHostedService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8">
  <WebRole name="WebRole1">
    <!--<Sites> ... </Sites> -->
    <!-- <Endpoints> ... </Endpoints> -->
    <Imports>
      <Import moduleName="Diagnostics" />
    </Imports>
  </WebRole>
</ServiceDefinition>

Diagnostics data is not persisted to storage by default.  To transfer diagnostic data to storage, you must define a connection string in the ServiceConfiguration.cscfg file. If you want to use a storage account in Windows Azure, you must change the connection string to include an account name and account key:

<ConfigurationSettings>
   <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=<AccountName>;AccountKey=<AccountKey>"/>
</ConfigurationSettings>

Refer the Following articles:
https://msdn.microsoft.com/en-us/library/azure/hh411537.aspx
https://msdn.microsoft.com/en-us/library/azure/dn482131.aspx

You may also lookup these Forum Threads that deal with the same issue.
http://stackoverflow.com/questions/6663720/how-is-azure-diagnostics-storage-account-configured
http://stackoverflow.com/questions/19428249/unable-to-import-module-diagnostics-no-manifest-was-found

Regards,

Nithin Rathnakar

Free Windows Admin Tool Kit Click here and download it now
April 30th, 2015 12:02am

Hi,

To collect diagnostics data, you must import the Diagnostics module in the service model for each role from which you want to collect diagnostic data. The module is imported by adding an Import element to the ServiceDefinition.csdef file. The following example shows the Import element defined for a web role:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="MyHostedService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8">
  <WebRole name="WebRole1">
    <!--<Sites> ... </Sites> -->
    <!-- <Endpoints> ... </Endpoints> -->
    <Imports>
      <Import moduleName="Diagnostics" />
    </Imports>
  </WebRole>
</ServiceDefinition>

Diagnostics data is not persisted to storage by default.  To transfer diagnostic data to storage, you must define a connection string in the ServiceConfiguration.cscfg file. If you want to use a storage account in Windows Azure, you must change the connection string to include an account name and account key:

<ConfigurationSettings>
   <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=<AccountName>;AccountKey=<AccountKey>"/>
</ConfigurationSettings>

Refer the Following articles:
https://msdn.microsoft.com/en-us/library/azure/hh411537.aspx
https://msdn.microsoft.com/en-us/library/azure/dn482131.aspx

You may also lookup these Forum Threads that deal with the same issue.
http://stackoverflow.com/questions/6663720/how-is-azure-diagnostics-storage-account-configured
http://stackoverflow.com/questions/19428249/unable-to-import-module-diagnostics-no-manifest-was-found

Regards,

Nithin Rathnakar

April 30th, 2015 4:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics