/// <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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <VirtualMachineScaleSetInner> > ListAllAsync(this IVirtualMachineScaleSetsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAllWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }