IVirtualMachineDiskOperations.UpdateDataDiskAsync Method

Asynchronously 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 instance As IVirtualMachineDiskOperations
Dim serviceName As String
Dim deploymentName As String
Dim roleName As String
Dim logicalUnitNumber As Integer
Dim parameters As VirtualMachineDiskUpdateDataDiskParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of OperationResponse)

returnValue = instance.UpdateDataDiskAsync(serviceName, deploymentName, roleName, logicalUnitNumber, parameters, cancellationToken)

Task<OperationResponse> UpdateDataDiskAsync (
	string serviceName,
	string deploymentName,
	string roleName,
	int logicalUnitNumber,
	VirtualMachineDiskUpdateDataDiskParameters parameters,
	CancellationToken cancellationToken
)
Task<OperationResponse> UpdateDataDiskAsync (
	String serviceName, 
	String deploymentName, 
	String roleName, 
	int logicalUnitNumber, 
	VirtualMachineDiskUpdateDataDiskParameters parameters, 
	CancellationToken cancellationToken
)
function UpdateDataDiskAsync (
	serviceName : String, 
	deploymentName : String, 
	roleName : String, 
	logicalUnitNumber : int, 
	parameters : VirtualMachineDiskUpdateDataDiskParameters, 
	cancellationToken : CancellationToken
) : Task<OperationResponse>

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.

parameters

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

cancellationToken

The cancellation token.

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: