/// <summary> /// Gets the list of Virtual Machines in the subscription. Use nextLink /// property in the response to get the next page of Virtual Machines. /// Do this till nextLink is not null to fetch all the Virtual /// Machines. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Compute.IVirtualMachineOperations. /// </param> /// <param name='parameters'> /// Optional. /// </param> /// <returns> /// The List Virtual Machine operation response. /// </returns> public static Task <VirtualMachineListResponse> ListAllAsync(this IVirtualMachineOperations operations, ListParameters parameters) { return(operations.ListAllAsync(parameters, CancellationToken.None)); }