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)

Syntax

public IEnumerable<RoleInstanceDiagnosticManager> GetRoleInstanceDiagnosticManagersForRole(
    string roleName
)
public:
IEnumerable<RoleInstanceDiagnosticManager^>^ GetRoleInstanceDiagnosticManagersForRole(
    String^ roleName
)
member GetRoleInstanceDiagnosticManagersForRole : 
        roleName:string -> IEnumerable<RoleInstanceDiagnosticManager>
Public Function GetRoleInstanceDiagnosticManagersForRole (
    roleName As String
) As IEnumerable(Of RoleInstanceDiagnosticManager)

Parameters

Return Value

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

Type: System.Collections.Generic.IEnumerable

A list of RoleInstanceDiagnosticManager objects.

Remarks

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.

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

DeploymentDiagnosticManager Class
Microsoft.WindowsAzure.Diagnostics.Management Namespace

Return to top