CloudAccountDiagnosticMonitorExtensions.CreateRoleInstanceDiagnosticManager Method

Creates an new instance of the RoleInstanceDiagnosticManager class for the specified deployment, role, and instance.

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

Syntax

'Declaration
Public Shared Function CreateRoleInstanceDiagnosticManager ( _
    connectionString As String, _
    deploymentId As String, _
    roleName As String, _
    roleInstanceId As String _
) As RoleInstanceDiagnosticManager
public static RoleInstanceDiagnosticManager CreateRoleInstanceDiagnosticManager (
    string connectionString,
    string deploymentId,
    string roleName,
    string roleInstanceId
)
public:
static RoleInstanceDiagnosticManager^ CreateRoleInstanceDiagnosticManager (
    String^ connectionString, 
    String^ deploymentId, 
    String^ roleName, 
    String^ roleInstanceId
)

Parameters

  • connectionString
    The connection string for the storage account
  • deploymentId
    The deployment ID for the current deployment.
  • roleName
    The name of the role in the specified deployment.
  • roleInstanceId
    The role instance ID.

Return Value

Returns RoleInstanceDiagnosticManager.

Remarks

The CreateRoleInstanceDiagnosticManager extension method enables you to use a connection string to create a RoleInstanceDiagnosticManager. The method will create the RoleInstanceDiagnosticManager using the connection string to a storage account to access the diagnostics configuration.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

CloudAccountDiagnosticMonitorExtensions Class
CloudAccountDiagnosticMonitorExtensions Members
Microsoft.WindowsAzure.Diagnostics.Management Namespace