DeploymentDiagnosticManager.GetRoleInstanceIdsForRole Method (String)

 

Returns a list of IDs of active role instances that have a diagnostic monitor running.

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

public IEnumerable<string> GetRoleInstanceIdsForRole(
	string roleName
)

Parameters

roleName
Type: System.String

Type: System.String

The name of the role.

Return Value

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

Type: System.Collections.Generic.IEnumerable

A list of role instance IDs.

The GetRoleInstanceIdsForRole method creates a list of role instance IDs in a role for which each instance is running a diagnostic monitor. If no role instances in your role are running a diagnostic monitor, this method will return an empty list.

System_CAPS_warningWarning

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
Show: