IVirtualMachineDiskOperations::GetDataDiskAsync Method (String^, String^, String^, Int32, CancellationToken)
Asynchronously retrieves information about the specified data disk.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Task<VirtualMachineDataDiskGetResponse^>^ GetDataDiskAsync(
String^ serviceName,
String^ deploymentName,
String^ roleName,
int logicalUnitNumber,
CancellationToken cancellationToken
)
Parameters
- serviceName
-
Type:
System::String^
The name of the cloud service that contains the Virtual Machine.
- deploymentName
-
Type:
System::String^
The name of the deployment.
- 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.
- cancellationToken
-
Type:
System.Threading::CancellationToken
The cancellation token.
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.
For more information about retrieving data disk information, see the following resources:
Show: