Share via


IVirtualMachineVMImageOperations.ReplicateAsync Method (String, VirtualMachineVMImageReplicateParameters, CancellationToken)

 

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.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

Task<VirtualMachineVMImageReplicateResponse> ReplicateAsync(
    string vmImageName,
    VirtualMachineVMImageReplicateParameters parameters,
    CancellationToken cancellationToken
)
Task<VirtualMachineVMImageReplicateResponse^>^ ReplicateAsync(
    String^ vmImageName,
    VirtualMachineVMImageReplicateParameters^ parameters,
    CancellationToken cancellationToken
)
abstract ReplicateAsync : 
        vmImageName:string *
        parameters:VirtualMachineVMImageReplicateParameters *
        cancellationToken:CancellationToken -> Task<VirtualMachineVMImageReplicateResponse>
Function ReplicateAsync (
    vmImageName As String,
    parameters As VirtualMachineVMImageReplicateParameters,
    cancellationToken As CancellationToken
) As Task(Of VirtualMachineVMImageReplicateResponse)

Parameters

  • vmImageName
    Type: System.String

    The name of the virtual machine image to replicate.

Return Value

Type: System.Threading.Tasks.Task<VirtualMachineVMImageReplicateResponse>

The response body contains the published name of the image.

See Also

IVirtualMachineVMImageOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace

Return to top