VirtualMachineDiskOperationsExtensions.UpdateDiskAsync Method

Asynchronously updates an existing disk in the user disk repository.

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

Dim operations As IVirtualMachineDiskOperations
Dim diskName As String
Dim parameters As VirtualMachineDiskUpdateDiskParameters
Dim returnValue As Task(Of VirtualMachineDiskUpdateDiskResponse)

returnValue = VirtualMachineDiskOperationsExtensions.UpdateDiskAsync(operations, diskName, parameters)

public static Task<VirtualMachineDiskUpdateDiskResponse> UpdateDiskAsync (
	IVirtualMachineDiskOperations operations,
	string diskName,
	VirtualMachineDiskUpdateDiskParameters parameters
/** @attribute ExtensionAttribute() */ 
public static Task<VirtualMachineDiskUpdateDiskResponse> UpdateDiskAsync (
	IVirtualMachineDiskOperations operations, 
	String diskName, 
	VirtualMachineDiskUpdateDiskParameters parameters
public static function UpdateDiskAsync (
	operations : IVirtualMachineDiskOperations, 
	diskName : String, 
	parameters : VirtualMachineDiskUpdateDiskParameters
) : Task<VirtualMachineDiskUpdateDiskResponse>



The IVirtualMachineDiskOperations object that specifies the Virtual Machine disk operations.


The name of the disk to be updated.


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

Return Value

An VirtualMachineDiskUpdateDiskResponse object that contains information about the updated disk.

The disk can be an operating system disk or a data disk.

For more information about updating disks, 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