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
-
Proposed as answer by
Nithin.RathnakarMicrosoft contingent staff, Moderator
Thursday, April 30, 2015 4:29 AM