MockableBillingBenefitsArmClient.GetDiscountByScopeAsync Method

Definition

List discounts that are applicable for a given scope. Currently supported scopes: billing accounts

  • Request Path. : /{scope}/providers/Microsoft.BillingBenefits/applicableDiscounts.
  • Operation Id. : DiscountsOperationGroup_ScopeList.
  • Default Api Version. : 2025-12-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.DiscountResource> GetDiscountByScopeAsync(Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDiscountByScopeAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.DiscountResource>
override this.GetDiscountByScopeAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.BillingBenefits.DiscountResource>
Public Overridable Function GetDiscountByScopeAsync (scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DiscountResource)

Parameters

scope
ResourceIdentifier

The scope that the resource will apply against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DiscountResource that may take multiple service requests to iterate over.

Exceptions

scope is null.

Applies to