code: public PagedList<VirtualMachineScaleSetVMInner> list(final String resourceGroupName, final String virtualMachineScaleSetName) {
          ServiceResponse<Page<VirtualMachineScaleSetVMInner>> response = listSinglePageAsync(resourceGroupName, virtualMachineScaleSetName).toBlocking().single();
          return new PagedList<VirtualMachineScaleSetVMInner>(response.body()) {
              @Override
              public Page<VirtualMachineScaleSetVMInner> nextPage(String nextPageLink) {
                  return listNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets a list of all virtual machines in a VM scale sets.
  
  @param resourceGroupName The name of the resource group.
  @param virtualMachineScaleSetName The name of the VM scale set.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;VirtualMachineScaleSetVMInner&gt; object if successful.