Dela via


VirtualMachineDiskOperationsExtensions.UpdateDataDisk Method

Definition

The Update Data Disk operation updates the specified data disk attached to the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157190.aspx for more information)

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

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 to add the data disk to.

logicalUnitNumber
Int32

Required. The logical unit number of the disk.

parameters
VirtualMachineDataDiskUpdateParameters

Required. Parameters supplied to the Update Virtual Machine Data Disk operation.

Returns

Microsoft.Azure.AzureOperationResponse

A standard service response including an HTTP status code and request ID.

Applies to