IVirtualMachineVMImageOperations.ReplicateAsync Method
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)
Usage
'Usage
Dim instance As IVirtualMachineVMImageOperations
Dim vmImageName As String
Dim parameters As VirtualMachineVMImageReplicateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of VirtualMachineVMImageReplicateResponse)
returnValue = instance.ReplicateAsync(vmImageName, parameters, cancellationToken)
Syntax
'Declaration
Function ReplicateAsync ( _
vmImageName As String, _
parameters As VirtualMachineVMImageReplicateParameters, _
cancellationToken As CancellationToken _
) As Task(Of VirtualMachineVMImageReplicateResponse)
Task<VirtualMachineVMImageReplicateResponse> ReplicateAsync (
string vmImageName,
VirtualMachineVMImageReplicateParameters parameters,
CancellationToken cancellationToken
)
Task<VirtualMachineVMImageReplicateResponse^>^ ReplicateAsync (
String^ vmImageName,
VirtualMachineVMImageReplicateParameters^ parameters,
CancellationToken cancellationToken
)
Task<VirtualMachineVMImageReplicateResponse> ReplicateAsync (
String vmImageName,
VirtualMachineVMImageReplicateParameters parameters,
CancellationToken cancellationToken
)
function ReplicateAsync (
vmImageName : String,
parameters : VirtualMachineVMImageReplicateParameters,
cancellationToken : CancellationToken
) : Task<VirtualMachineVMImageReplicateResponse>
Parameters
- vmImageName
The name of the virtual machine image to replicate.
- parameters
Parameters supplied to the Replicate Virtual Machine Image operation.
- cancellationToken
Cancellation token.
Return Value
The response body contains the published name of the image.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
IVirtualMachineVMImageOperations Interface
IVirtualMachineVMImageOperations Members
Microsoft.WindowsAzure.Management.Compute Namespace