Share via


IVirtualMachineDiskOperations.GetDiskAsync Method

Asynchronously retrieves information about a disk in the user disk repository.

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

Usage

'Usage
Dim instance As IVirtualMachineDiskOperations
Dim name As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineDiskGetResponse)

returnValue = instance.GetDiskAsync(name, cancellationToken)

Syntax

'Declaration
Function GetDiskAsync ( _
    name As String, _
    cancellationToken As CancellationToken _
) As Task(Of VirtualMachineDiskGetResponse)
Task<VirtualMachineDiskGetResponse> GetDiskAsync (
    string name,
    CancellationToken cancellationToken
)
Task<VirtualMachineDiskGetResponse^>^ GetDiskAsync (
    String^ name, 
    CancellationToken cancellationToken
)
Task<VirtualMachineDiskGetResponse> GetDiskAsync (
    String name, 
    CancellationToken cancellationToken
)
function GetDiskAsync (
    name : String, 
    cancellationToken : CancellationToken
) : Task<VirtualMachineDiskGetResponse>

Parameters

  • diskName
    The name of the disk.
  • cancellationToken
    The cancellation token.

Return Value

The disk can be an operating system disk or a data disk.

The VirtualMachineDiskGetDiskResponse object that contains the information about the disk.

Remarks

For more information about retrieving disk information, see Get-AzureDisk

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, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IVirtualMachineDiskOperations Interface
IVirtualMachineDiskOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace