Share via


IVirtualMachineDiskOperations.UpdateDiskAsync Method

The Add Disk operation adds a disk to the user image repository. The disk can be an operating system disk or a data disk. (see https://msdn.microsoft.com/library/windowsazure/jj157178.aspx for more information)

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

Usage

'Usage
Dim instance As IVirtualMachineDiskOperations
Dim name As String
Dim parameters As VirtualMachineDiskUpdateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineDiskUpdateResponse)

returnValue = instance.UpdateDiskAsync(name, parameters, cancellationToken)

Syntax

'Declaration
Function UpdateDiskAsync ( _
    name As String, _
    parameters As VirtualMachineDiskUpdateParameters, _
    cancellationToken As CancellationToken _
) As Task(Of VirtualMachineDiskUpdateResponse)
Task<VirtualMachineDiskUpdateResponse> UpdateDiskAsync (
    string name,
    VirtualMachineDiskUpdateParameters parameters,
    CancellationToken cancellationToken
)
Task<VirtualMachineDiskUpdateResponse^>^ UpdateDiskAsync (
    String^ name, 
    VirtualMachineDiskUpdateParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<VirtualMachineDiskUpdateResponse> UpdateDiskAsync (
    String name, 
    VirtualMachineDiskUpdateParameters parameters, 
    CancellationToken cancellationToken
)
function UpdateDiskAsync (
    name : String, 
    parameters : VirtualMachineDiskUpdateParameters, 
    cancellationToken : CancellationToken
) : Task<VirtualMachineDiskUpdateResponse>

Parameters

  • name
    The name of the disk being updated.
  • parameters
    Parameters supplied to the Update Virtual Machine Disk operation.
  • cancellationToken
    Cancellation token.

Return Value

A virtual machine disk associated with your subscription.

Thread Safety

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

Platforms

Development Platforms

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

Target Platforms

See Also

Reference

IVirtualMachineDiskOperations Interface
IVirtualMachineDiskOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace