Dela via


VirtualMachineVMImageOperationsExtensions.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 static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateResponse> ReplicateAsync (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations operations, string vmImageName, Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateParameters parameters);
static member ReplicateAsync : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateParameters -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineVMImageReplicateResponse>
<Extension()>
Public Function ReplicateAsync (operations As IVirtualMachineVMImageOperations, vmImageName As String, parameters As VirtualMachineVMImageReplicateParameters) As Task(Of VirtualMachineVMImageReplicateResponse)

Parameters

operations
IVirtualMachineVMImageOperations

Reference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations.

vmImageName
String

Required. The name of the virtual machine image to replicate.

parameters
VirtualMachineVMImageReplicateParameters

Required. Parameters supplied to the Replicate Virtual Machine Image operation.

Returns

The response body contains the published name of the image.

Applies to