def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil)
      begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value!
    end
def begin_capture_with_http_info(resource_group_name, vm_name, parameters, custom_headers:nil)
      begin_capture_async(resource_group_name, vm_name, parameters, custom_headers:custom_headers).value!
    end
Captures the VM by copying virtual hard disks of the VM and outputs a
 template that can be used to create similar VMs.

 @param resource_group_name [String] The name of the resource group.
 @param vm_name [String] The name of the virtual machine.
 @param parameters [VirtualMachineCaptureParameters] Parameters supplied to
 the Capture Virtual Machine operation.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.