IVirtualMachineDiskOperations.GetDataDiskAsync Method
Asynchronously retrieves information about the specified data disk.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Usage
'Usage
Dim instance As IVirtualMachineDiskOperations
Dim serviceName As String
Dim deploymentName As String
Dim roleName As String
Dim logicalUnitNumber As Integer
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineDataDiskGetResponse)
returnValue = instance.GetDataDiskAsync(serviceName, deploymentName, roleName, logicalUnitNumber, cancellationToken)
Syntax
'Declaration
Function GetDataDiskAsync ( _
serviceName As String, _
deploymentName As String, _
roleName As String, _
logicalUnitNumber As Integer, _
cancellationToken As CancellationToken _
) As Task(Of VirtualMachineDataDiskGetResponse)
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
)
Task<VirtualMachineDataDiskGetResponse> GetDataDiskAsync (
String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
CancellationToken cancellationToken
)
function GetDataDiskAsync (
serviceName : String,
deploymentName : String,
roleName : String,
logicalUnitNumber : int,
cancellationToken : CancellationToken
) : Task<VirtualMachineDataDiskGetResponse>
Parameters
- serviceName
The name of the cloud service that contains the Virtual Machine.
- deploymentName
The name of the deployment.
- roleName
The name of the Virtual Machine to which the data disk is attached.
- logicalUnitNumber
The logical unit number of the disk.
- cancellationToken
The cancellation token.
Return Value
The VirtualMachineDiskGetDataDiskResponse object that contains the information about the data disk.
Remarks
For more information about retrieving data disk information, see the following resources:
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