/// <summary> /// Gets all available geo-locations. /// </summary> /// <remarks> /// This operation provides all the locations that are available for resource /// providers; however, each resource provider may support a subset of this /// list. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The ID of the target subscription. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <Location> > ListLocationsAsync(this ISubscriptionsOperations operations, string subscriptionId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListLocationsWithHttpMessagesAsync(subscriptionId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }