SALES: 1-800-867-1380

DeploymentDiagnosticManager.GetRoleInstanceDiagnosticManagersForRole Method

Updated: November 15, 2013

Returns the list of role instance diagnostic managers for the specified role.

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

public IEnumerable<RoleInstanceDiagnosticManager> GetRoleInstanceDiagnosticManagersForRole (
	string roleName



Type: System.String

The name of the role.

Return Value

Type: System.Collections.Generic.IEnumerable

A list of RoleInstanceDiagnosticManager objects.

The GetRoleInstanceDiagnosticManagersForRole method creates a list of RoleInstanceDiagnosticManager objects that can manage the diagnostics of each running role instance. You specify the name of the role and this method automatically enumerates each role instance and creates a RoleInstanceDiagnosticManager for it.

The roleName parameter can be retrieved from the Management Portal or by using the Get Hosted Service Properties operation of the Service Management API.

This method will return a RoleInstanceDiagnosticManager object for each role instance in the specified role. If you want to make diagnostic changes to only one role instance for a particular role, you can use the GetRoleInstanceDiagnosticManager method.

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

Development Platforms

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

Target Platforms

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

Community Additions

© 2014 Microsoft