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)
Syntax
public IEnumerable<string> GetRoleInstanceIdsForRole(
string roleName
)
public:
IEnumerable<String^>^ GetRoleInstanceIdsForRole(
String^ roleName
)
member GetRoleInstanceIdsForRole :
roleName:string -> IEnumerable<string>
Public Function GetRoleInstanceIdsForRole (
roleName As String
) As IEnumerable(Of String)
Parameters
roleName
Type: System.StringType: 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.
Remarks
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.
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