IVirtualMachineDiskOperations.GetDataDiskAsync Method (String, String, String, Int32, CancellationToken)

 

Asynchronously retrieves information about the specified data disk.

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

Syntax

Task<VirtualMachineDataDiskGetResponse> GetDataDiskAsync(
    string serviceName,
    string deploymentName,
    string roleName,
    int logicalUnitNumber,
    CancellationToken cancellationToken
)
Task<VirtualMachineDataDiskGetResponse^>^ GetDataDiskAsync(
    String^ serviceName,
    String^ deploymentName,
    String^ roleName,
    int logicalUnitNumber,
    CancellationToken cancellationToken
)
abstract GetDataDiskAsync : 
        serviceName:string *
        deploymentName:string *
        roleName:string *
        logicalUnitNumber:int *
        cancellationToken:CancellationToken -> Task<VirtualMachineDataDiskGetResponse>
Function GetDataDiskAsync (
    serviceName As String,
    deploymentName As String,
    roleName As String,
    logicalUnitNumber As Integer,
    cancellationToken As CancellationToken
) As Task(Of VirtualMachineDataDiskGetResponse)

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service that contains the Virtual Machine.

  • roleName
    Type: System.String

    The name of the Virtual Machine to which the data disk is attached.

  • logicalUnitNumber
    Type: System.Int32

    The logical unit number of the disk.

Return Value

Type: System.Threading.Tasks.Task<VirtualMachineDataDiskGetResponse>

The T:Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskGetDataDiskResponse object that contains the information about the data disk.

Remarks

For more information about retrieving data disk information, see the following resources:

See Also

IVirtualMachineDiskOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top