VirtualMachineDiskOperationsExtensions.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 operations As IVirtualMachineDiskOperations
Dim serviceName As String
Dim deploymentName As String
Dim roleName As String
Dim logicalUnitNumber As Integer
Dim returnValue As Task(Of VirtualMachineDataDiskGetResponse)
returnValue = VirtualMachineDiskOperationsExtensions.GetDataDiskAsync(operations, serviceName, deploymentName, roleName, logicalUnitNumber)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetDataDiskAsync ( _
operations As IVirtualMachineDiskOperations, _
serviceName As String, _
deploymentName As String, _
roleName As String, _
logicalUnitNumber As Integer _
) As Task(Of VirtualMachineDataDiskGetResponse)
[ExtensionAttribute]
public static Task<VirtualMachineDataDiskGetResponse> GetDataDiskAsync (
IVirtualMachineDiskOperations operations,
string serviceName,
string deploymentName,
string roleName,
int logicalUnitNumber
)
[ExtensionAttribute]
public:
static Task<VirtualMachineDataDiskGetResponse^>^ GetDataDiskAsync (
IVirtualMachineDiskOperations^ operations,
String^ serviceName,
String^ deploymentName,
String^ roleName,
int logicalUnitNumber
)
/** @attribute ExtensionAttribute() */
public static Task<VirtualMachineDataDiskGetResponse> GetDataDiskAsync (
IVirtualMachineDiskOperations operations,
String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber
)
ExtensionAttribute
public static function GetDataDiskAsync (
operations : IVirtualMachineDiskOperations,
serviceName : String,
deploymentName : String,
roleName : String,
logicalUnitNumber : int
) : Task<VirtualMachineDataDiskGetResponse>
Parameters
- operations
The IVirtualMachineDiskOperations object that specifies the Virtual Machine disk operations.
- 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.
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
VirtualMachineDiskOperationsExtensions Class
VirtualMachineDiskOperationsExtensions Members
Microsoft.WindowsAzure.Management.Compute Namespace