共用方式為


IVirtualMachineVMImageOperations.ReplicateAsync Method

Definition

Replicate an VM 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.VirtualMachineVMImageReplicateResponse> ReplicateAsync (string vmImageName, Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member ReplicateAsync : string * Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateResponse>
Public Function ReplicateAsync (vmImageName As String, parameters As VirtualMachineVMImageReplicateParameters, cancellationToken As CancellationToken) As Task(Of VirtualMachineVMImageReplicateResponse)

Parameters

vmImageName
String

The name of the virtual machine image to replicate.

parameters
VirtualMachineVMImageReplicateParameters

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