VirtualMachineOSImageOperationsExtensions.ReplicateAsync Method (IVirtualMachineOSImageOperations, String, VirtualMachineOSImageReplicateParameters)
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.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
public static Task<VirtualMachineOSImageReplicateResponse> ReplicateAsync(
this IVirtualMachineOSImageOperations operations,
string imageName,
VirtualMachineOSImageReplicateParameters parameters
)
public:
[ExtensionAttribute]
static Task<VirtualMachineOSImageReplicateResponse^>^ ReplicateAsync(
IVirtualMachineOSImageOperations^ operations,
String^ imageName,
VirtualMachineOSImageReplicateParameters^ parameters
)
static member ReplicateAsync :
operations:IVirtualMachineOSImageOperations *
imageName:string *
parameters:VirtualMachineOSImageReplicateParameters -> Task<VirtualMachineOSImageReplicateResponse>
<ExtensionAttribute>
Public Shared Function ReplicateAsync (
operations As IVirtualMachineOSImageOperations,
imageName As String,
parameters As VirtualMachineOSImageReplicateParameters
) As Task(Of VirtualMachineOSImageReplicateResponse)
Parameters
operations
Type: Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperationsReference to the Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations.
imageName
Type: System.StringRequired. The name of the virtual machine OS image to replicate.
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineOSImageReplicateParametersRequired. Parameters supplied to the Replicate Virtual Machine Image operation.
Return Value
Type: System.Threading.Tasks.Task<VirtualMachineOSImageReplicateResponse>
The response body contains the published name of the image.
See Also
VirtualMachineOSImageOperationsExtensions Class
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top