DiagnosticMonitor.StartWithConnectionString Method (String, DiagnosticMonitorConfiguration)
Starts a diagnostic monitor using the specified connection string and diagnostic monitor configuration.
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
Public Shared Function StartWithConnectionString ( connectionString As String, initialConfiguration As DiagnosticMonitorConfiguration ) As DiagnosticMonitor
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.
Warning |
|---|
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. |
