DiagnosticMonitor.StartWithConnectionString Method (String, DiagnosticMonitorConfiguration)

 

Starts a diagnostic monitor using the specified connection string and diagnostic monitor configuration.

Namespace:   Microsoft.WindowsAzure.Diagnostics
Assembly:  Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)

public static DiagnosticMonitor StartWithConnectionString(
	string connectionString,
	DiagnosticMonitorConfiguration initialConfiguration
)

Parameters

connectionString
Type: System.String

A String that specifies a connection string to a storage account.

initialConfiguration
Type: Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorConfiguration

A DiagnosticMonitorConfiguration object that provides a custom initial configuration.

Data buffers are transferred to the storage account specified by the connection string. The DiagnosticMonitorConfiguration object provides specific configuration options for your role instance.

If your storage account is misconfigured, your role instance will start without diagnostics. To ensure that diagnostics will start, verify that your storage account is configured correctly before calling the StartWithConnectionString method.

System_CAPS_warningWarning

This API is not supported in Azure SDK versions 2.5 and higher. Instead, use the diagnostics.wadcfg XML configuration file. For more information, see Collect Logging Data by Using Azure Diagnostics.

Return to top
Show: