/// <summary>
 /// Captures the VM by copying VirtualHardDisks of the VM and outputs a
 /// template that can be used to create similar VMs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Compute.IVirtualMachineOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='vmName'>
 /// Required. The name of the virtual machine.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Capture Virtual Machine
 /// operation.
 /// </param>
 /// <returns>
 /// The compute long running operation response.
 /// </returns>
 public static Task <ComputeOperationResponse> BeginCapturingAsync(this IVirtualMachineOperations operations, string resourceGroupName, string vmName, VirtualMachineCaptureParameters parameters)
 {
     return(operations.BeginCapturingAsync(resourceGroupName, vmName, parameters, CancellationToken.None));
 }