RoleInstanceDiagnosticManager.DeploymentId Property

 

Gets the deployment ID of this role instance.

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

public string DeploymentId { get; private set; }

Property Value

Type: System.String

Type: System.String

Returns String.

The DeploymentId property is used to return the hosted service deployment ID of a role instance. The following code snippet gets the deployment ID of a role instance:

// Get the diagnostic monitor for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = 
         new RoleInstanceDiagnosticManager(myStorageAccount, 
                                           "28281fc7754b44faa9ccf4911983edf1",
                                           "MyWebRole",
                                           "deployment(1).MyAzureProject.WebRole1.0");

// Get the deployment ID for the role instance.
string deploymentID = roleInstanceDiagnosticManager.DeploymentId;

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: