CloudAccountDiagnosticMonitorExtensions.CreateDeploymentDiagnosticManager Method

Creates a new instance of the DeploymentDiagnosticManager class for the specified deployment.

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

Usage

'Usage
Dim storageAccount As CloudStorageAccount
Dim deploymentId As String
Dim returnValue As DeploymentDiagnosticManager

returnValue = CloudAccountDiagnosticMonitorExtensions.CreateDeploymentDiagnosticManager(storageAccount, deploymentId)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function CreateDeploymentDiagnosticManager ( _
    storageAccount As CloudStorageAccount, _
    deploymentId As String _
) As DeploymentDiagnosticManager
[ExtensionAttribute] 
public static DeploymentDiagnosticManager CreateDeploymentDiagnosticManager (
    CloudStorageAccount storageAccount,
    string deploymentId
)
[ExtensionAttribute] 
public:
static DeploymentDiagnosticManager^ CreateDeploymentDiagnosticManager (
    CloudStorageAccount^ storageAccount, 
    String^ deploymentId
)
/** @attribute ExtensionAttribute() */ 
public static DeploymentDiagnosticManager CreateDeploymentDiagnosticManager (
    CloudStorageAccount storageAccount, 
    String deploymentId
)
ExtensionAttribute 
public static function CreateDeploymentDiagnosticManager (
    storageAccount : CloudStorageAccount, 
    deploymentId : String
) : DeploymentDiagnosticManager

Parameters

  • deploymentId
    Type: System.String

    The deployment ID for the current deployment.

Return Value

Type: Microsoft.WindowsAzure.Diagnostics.Management.DeploymentDiagnosticManager

A DeploymentDiagnosticManager object.

Remarks

The CreateDeploymentDiagnosticManager extension method enables you to use a CloudStorageAccount reference to create a DeploymentDiagnosticManager. The method will create the DeploymentDiagnosticManager and use the CloudStorageAccount to access the diagnostics configuration.

Example

The following code snippet creates a new CloudStorageAccount and also creates a DeploymentDiagnosticManager.

// Create a StorageCredentialsAccountAndKey object for the storage account.
StorageCredentialsAccountAndKey storageCredentials = new StorageCredentialsAccountAndKey("MyAccountName", MyKey);

// Create a new DeploymentDiagnosticManager object using the CreateDeploymentDiagnosticManager extension method.
CloudStorageAccount storageAccount = new CloudStorageAccount(storageCredentials, true);
DeploymentDiagnosticManager deploymentDiagMgr = storageAccount.CreateDeploymentDiagnosticManager("28281fc7754b44faa9ccf4911983edf1");

Thread Safety

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

Platforms

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Change History

See Also

Reference

CloudAccountDiagnosticMonitorExtensions Class
CloudAccountDiagnosticMonitorExtensions Members
Microsoft.WindowsAzure.Diagnostics.Management Namespace