共用方式為


VirtualMachineOSImageOperationsExtensions.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 static System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateResponse> ReplicateAsync (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations operations, string imageName, Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateParameters parameters);
static member ReplicateAsync : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations * string * Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateParameters -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateResponse>
<Extension()>
Public Function ReplicateAsync (operations As IVirtualMachineOSImageOperations, imageName As String, parameters As VirtualMachineOSImageReplicateParameters) As Task(Of VirtualMachineOSImageReplicateResponse)

Parameters

operations
IVirtualMachineOSImageOperations

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

imageName
String

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

parameters
VirtualMachineOSImageReplicateParameters

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

Returns

The response body contains the published name of the image.

Applies to