Export (0) Print
Expand All

RoleInstanceDiagnosticManager.DeploymentId Property

Updated: November 15, 2013

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; }

Property Value

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, 

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

Community Additions

© 2015 Microsoft