共用方式為


VirtualMachineDiskOperationsExtensions.GetDataDisk Method

Definition

The Get Data Disk operation retrieves the specified data disk from a virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157180.aspx for more information)

public static Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDataDiskGetResponse GetDataDisk (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations operations, string serviceName, string deploymentName, string roleName, int logicalUnitNumber);
static member GetDataDisk : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations * string * string * string * int -> Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDataDiskGetResponse
<Extension()>
Public Function GetDataDisk (operations As IVirtualMachineDiskOperations, serviceName As String, deploymentName As String, roleName As String, logicalUnitNumber As Integer) As VirtualMachineDataDiskGetResponse

Parameters

operations
IVirtualMachineDiskOperations

Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineDiskOperations.

serviceName
String

Required. The name of your service.

deploymentName
String

Required. The name of the deployment.

roleName
String

Required. The name of the role.

logicalUnitNumber
Int32

Required. The logical unit number of the disk.

Returns

The Get Data Disk operation response.

Applies to