VirtualMachineDiskOperationsExtensions.GetDataDisk Method (IVirtualMachineDiskOperations, String, String, String, Int32)

 

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 VirtualMachineDataDiskGetResponse GetDataDisk(
    this IVirtualMachineDiskOperations operations,
    string serviceName,
    string deploymentName,
    string roleName,
    int logicalUnitNumber
)
public:
[ExtensionAttribute]
static VirtualMachineDataDiskGetResponse^ GetDataDisk(
    IVirtualMachineDiskOperations^ operations,
    String^ serviceName,
    String^ deploymentName,
    String^ roleName,
    int logicalUnitNumber
)
static member GetDataDisk : 
        operations:IVirtualMachineDiskOperations *
        serviceName:string *
        deploymentName:string *
        roleName:string *
        logicalUnitNumber:int -> VirtualMachineDataDiskGetResponse
<ExtensionAttribute>
Public Shared Function GetDataDisk (
    operations As IVirtualMachineDiskOperations,
    serviceName As String,
    deploymentName As String,
    roleName As String,
    logicalUnitNumber As Integer
) As VirtualMachineDataDiskGetResponse

Parameters

  • serviceName
    Type: System.String

    The name of the cloud service that contains the Virtual Machine.

  • 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.

Return Value

Type: Microsoft.WindowsAzure.Management.Compute.Models.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