/// <summary> /// The operation to restart 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='vmName'> /// Required. The name of the virtual machine. /// </param> /// <returns> /// The Compute service response for long-running operations. /// </returns> public static Task <ComputeLongRunningOperationResponse> RestartAsync(this IVirtualMachineOperations operations, string resourceGroupName, string vmName) { return(operations.RestartAsync(resourceGroupName, vmName, CancellationToken.None)); }