DeploymentDiagnosticManager.GetRoleInstanceDiagnosticManagersForRole Method (String)


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

Type: System.String

The name of the role.

Return Value

Type: System.Collections.Generic.IEnumerable<RoleInstanceDiagnosticManager>

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 Cloud 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.


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.

Return to top