/// <summary>
 /// The operation to create or update a virtual machine.
 /// </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='parameters'>
 /// Required. Parameters supplied to the Create Virtual Machine
 /// operation.
 /// </param>
 /// <returns>
 /// The Compute service response for long-running operations.
 /// </returns>
 public static Task <ComputeLongRunningOperationResponse> CreateOrUpdateAsync(this IVirtualMachineOperations operations, string resourceGroupName, VirtualMachine parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, parameters, CancellationToken.None));
 }