Share via


VirtualMachineDiskOperationsExtensions.GetDataDisk Method

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 VirtualMachineDataDiskGetResponse

returnValue = VirtualMachineDiskOperationsExtensions.GetDataDisk(operations, serviceName, deploymentName, roleName, logicalUnitNumber)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetDataDisk ( _
    operations As IVirtualMachineDiskOperations, _
    serviceName As String, _
    deploymentName As String, _
    roleName As String, _
    logicalUnitNumber As Integer _
) As VirtualMachineDataDiskGetResponse
[ExtensionAttribute] 
public static VirtualMachineDataDiskGetResponse GetDataDisk (
    IVirtualMachineDiskOperations operations,
    string serviceName,
    string deploymentName,
    string roleName,
    int logicalUnitNumber
)
[ExtensionAttribute] 
public:
static VirtualMachineDataDiskGetResponse^ GetDataDisk (
    IVirtualMachineDiskOperations^ operations, 
    String^ serviceName, 
    String^ deploymentName, 
    String^ roleName, 
    int logicalUnitNumber
)
/** @attribute ExtensionAttribute() */ 
public static VirtualMachineDataDiskGetResponse GetDataDisk (
    IVirtualMachineDiskOperations operations, 
    String serviceName, 
    String deploymentName, 
    String roleName, 
    int logicalUnitNumber
)
ExtensionAttribute 
public static function GetDataDisk (
    operations : IVirtualMachineDiskOperations, 
    serviceName : String, 
    deploymentName : String, 
    roleName : String, 
    logicalUnitNumber : int
) : 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.

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