/// <summary> /// Gets a list of all VM Scale Sets in the subscription, regardless of the /// associated resource group. Use nextLink property in the response to get the /// next page of VM Scale Sets. Do this till nextLink is null to fetch all the /// VM Scale Sets. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <VirtualMachineScaleSetInner> > ListAllNextAsync(this IVirtualMachineScaleSetsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }