VirtualMachineDiskOperationsExtensions.GetDataDiskAsync Method (IVirtualMachineDiskOperations, String, String, String, Int32)
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
public static Task<VirtualMachineDataDiskGetResponse> GetDataDiskAsync(
this IVirtualMachineDiskOperations operations,
string serviceName,
string deploymentName,
string roleName,
int logicalUnitNumber
)
public:
[ExtensionAttribute]
static Task<VirtualMachineDataDiskGetResponse^>^ GetDataDiskAsync(
IVirtualMachineDiskOperations^ operations,
String^ serviceName,
String^ deploymentName,
String^ roleName,
int logicalUnitNumber
)
static member GetDataDiskAsync :
operations:IVirtualMachineDiskOperations *
serviceName:string *
deploymentName:string *
roleName:string *
logicalUnitNumber:int -> Task<VirtualMachineDataDiskGetResponse>
<ExtensionAttribute>
Public Shared Function GetDataDiskAsync (
operations As IVirtualMachineDiskOperations,
serviceName As String,
deploymentName As String,
roleName As String,
logicalUnitNumber As Integer
) As Task(Of VirtualMachineDataDiskGetResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperationsThe IVirtualMachineDiskOperations object that specifies the Virtual Machine disk operations.
serviceName
Type: System.StringThe name of the cloud service that contains the Virtual Machine.
deploymentName
Type: System.StringThe name of the deployment.
roleName
Type: System.StringThe name of the Virtual Machine to which the data disk is attached.
logicalUnitNumber
Type: System.Int32The 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
VirtualMachineDiskOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top