Dela via


IVirtualMachineOSImageOperations.ReplicateAsync Method

Definition

Replicate an OS image to multiple target locations. This operation is only for publishers. You have to be registered as image publisher with Windows Azure to be able to call this.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateResponse> ReplicateAsync (string imageName, Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member ReplicateAsync : string * Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateResponse>
Public Function ReplicateAsync (imageName As String, parameters As VirtualMachineOSImageReplicateParameters, cancellationToken As CancellationToken) As Task(Of VirtualMachineOSImageReplicateResponse)

Parameters

imageName
String

The name of the virtual machine OS image to replicate.

parameters
VirtualMachineOSImageReplicateParameters

Parameters supplied to the Replicate Virtual Machine Image operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

The response body contains the published name of the image.

Applies to