Compartir a través de


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)

Syntax

public static DiagnosticMonitor StartWithConnectionString(
    string connectionString,
    DiagnosticMonitorConfiguration initialConfiguration
)
public:
static DiagnosticMonitor^ StartWithConnectionString(
    String^ connectionString,
    DiagnosticMonitorConfiguration^ initialConfiguration
)
static member StartWithConnectionString : 
        connectionString:string *
        initialConfiguration:DiagnosticMonitorConfiguration -> DiagnosticMonitor
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.

Return Value

Type: Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitor

Returns DiagnosticMonitor.

Remarks

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.

See Also

DiagnosticMonitor Class
Microsoft.WindowsAzure.Diagnostics Namespace

Return to top