VirtualMachineDiskOperationsExtensions.UpdateDataDisk Method

Updates the specified data disk that is attached to the specified Virtual Machine.

Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

'Usage
Dim operations As IVirtualMachineDiskOperations
Dim serviceName As String
Dim deploymentName As String
Dim roleName As String
Dim logicalUnitNumber As Integer
Dim parameters As VirtualMachineDiskUpdateDataDiskParameters
Dim returnValue As OperationResponse

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

[ExtensionAttribute] 
public static OperationResponse UpdateDataDisk (
	IVirtualMachineDiskOperations operations,
	string serviceName,
	string deploymentName,
	string roleName,
	int logicalUnitNumber,
	VirtualMachineDiskUpdateDataDiskParameters parameters
)
/** @attribute ExtensionAttribute() */ 
public static OperationResponse UpdateDataDisk (
	IVirtualMachineDiskOperations operations, 
	String serviceName, 
	String deploymentName, 
	String roleName, 
	int logicalUnitNumber, 
	VirtualMachineDiskUpdateDataDiskParameters parameters
)
ExtensionAttribute 
public static function UpdateDataDisk (
	operations : IVirtualMachineDiskOperations, 
	serviceName : String, 
	deploymentName : String, 
	roleName : String, 
	logicalUnitNumber : int, 
	parameters : VirtualMachineDiskUpdateDataDiskParameters
) : OperationResponse

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 should be added.

logicalUnitNumber

The logical unit number of the disk.

parameters

The VirtualMachineDiskUpdateDataDiskParameters object that contains the parameters that are used to update a data disk.

Return Value

An OperationResponse object that includes an HTTP status code and request ID.

For more information about updating a data disk, see the following resources:


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

Show: