Share via


IVirtualMachineOSImageOperations.UpdateAsync Method

The Update OS Image operation updates an OS image that in your image repository. (see https://msdn.microsoft.com/en-us/library/windowsazure/jj157198.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 IVirtualMachineOSImageOperations
Dim imageName As String
Dim parameters As VirtualMachineOSImageUpdateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineOSImageUpdateResponse)

returnValue = instance.UpdateAsync(imageName, parameters, cancellationToken)

Syntax

'Declaration
Function UpdateAsync ( _
    imageName As String, _
    parameters As VirtualMachineOSImageUpdateParameters, _
    cancellationToken As CancellationToken _
) As Task(Of VirtualMachineOSImageUpdateResponse)
Task<VirtualMachineOSImageUpdateResponse> UpdateAsync (
    string imageName,
    VirtualMachineOSImageUpdateParameters parameters,
    CancellationToken cancellationToken
)
Task<VirtualMachineOSImageUpdateResponse^>^ UpdateAsync (
    String^ imageName, 
    VirtualMachineOSImageUpdateParameters^ parameters, 
    CancellationToken cancellationToken
)
Task<VirtualMachineOSImageUpdateResponse> UpdateAsync (
    String imageName, 
    VirtualMachineOSImageUpdateParameters parameters, 
    CancellationToken cancellationToken
)
function UpdateAsync (
    imageName : String, 
    parameters : VirtualMachineOSImageUpdateParameters, 
    cancellationToken : CancellationToken
) : Task<VirtualMachineOSImageUpdateResponse>

Parameters

  • imageName
    The name of the virtual machine image to be updated.
  • parameters
    Parameters supplied to the Update Virtual Machine Image operation.
  • cancellationToken
    Cancellation token.

Return Value

Parameters returned from the Create Virtual Machine Image operation.

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

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