MockableCostManagementArmClient.DownloadByBillingProfilePriceSheetAsync Method

Definition

Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. You can use the new 2023-09-01 API version for billing periods January 2023 onwards. Azure Reserved Instance (RI) pricing is only available through the new version of the API. Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv/json file to a Zip file containing multiple csv/json files, each with max size of 75MB.

  • Request Path. : /providers/microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download.
  • Operation Id. : PriceSheetOperationGroup_DownloadByBillingProfile.
  • Default Api Version. : 2025-03-01.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.PriceSheetDownloadProperties>> DownloadByBillingProfilePriceSheetAsync(Azure.WaitUntil waitUntil, Azure.Core.ResourceIdentifier scope, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadByBillingProfilePriceSheetAsync : Azure.WaitUntil * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.PriceSheetDownloadProperties>>
override this.DownloadByBillingProfilePriceSheetAsync : Azure.WaitUntil * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.PriceSheetDownloadProperties>>
Public Overridable Function DownloadByBillingProfilePriceSheetAsync (waitUntil As WaitUntil, scope As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PriceSheetDownloadProperties))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

scope
ResourceIdentifier

The scope that the resource will apply against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scope is null.

Applies to