/// <summary>
 /// Sets the state of the VM as Generalized.
 /// </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>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> GeneralizeAsync(this IVirtualMachineOperations operations, string resourceGroupName, string vmName)
 {
     return(operations.GeneralizeAsync(resourceGroupName, vmName, CancellationToken.None));
 }