SALES: 1-800-867-1380

RoleInstanceDiagnosticManager Constructor

Initializes a new instance of the RoleInstanceDiagnosticManager class.

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

'Usage
Dim storageAccount As CloudStorageAccount
Dim deploymentId As String
Dim roleName As String
Dim roleInstanceId As String

Dim instance As New RoleInstanceDiagnosticManager(storageAccount, deploymentId, roleName, roleInstanceId)

'Declaration
Public Sub New ( _
	storageAccount As CloudStorageAccount, _
	deploymentId As String, _
	roleName As String, _
	roleInstanceId As String _
)
public RoleInstanceDiagnosticManager (
	CloudStorageAccount storageAccount, 
	String deploymentId, 
	String roleName, 
	String roleInstanceId
)
public function RoleInstanceDiagnosticManager (
	storageAccount : CloudStorageAccount, 
	deploymentId : String, 
	roleName : String, 
	roleInstanceId : String
)

Parameters

storageAccount

Type: Microsoft.WindowsAzure.CloudStorageAccount

A CloudStorageAccount object.

deploymentId

Type: System.String

The deployment ID.

roleName

Type: System.String

The name of the role.

roleInstanceId

Type: System.String

The role instance ID.

The RoleInstanceDiagnosticManager constructor creates an object that represents the diagnostic monitor for a role instance. The methods and properties of this class enable you to configure on-demand transfers and change the current configuration of a diagnostic monitor.

The following code snippet creates a RoleInstanceDiagnosticManager using this method:

RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = 
       new RoleInstanceDiagnosticManager(myStorageAccount, 
                                         "28281fc7754b44faa9ccf4911983edf1",
                                         "MyWebRole",
                                         "deployment(1).MyAzureProject.WebRole1.0");


Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft