/// <summary> /// Gets a subscription by its ID. The operation is supported for billing /// accounts with agreement type Microsoft Customer Agreement and Microsoft /// Partner Agreement. /// <see href="https://docs.microsoft.com/en-us/rest/api/billing/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// The ID that uniquely identifies a billing account. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BillingSubscription> GetAsync(this IBillingSubscriptionsOperations operations, string billingAccountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(billingAccountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }