Share via


CostManagementExtensions.DownloadPriceSheetAsync Method

Definition

Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.

  • Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download
  • Operation Id: PriceSheet_Download
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.DownloadURL>> DownloadPriceSheetAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountName, string billingProfileName, string invoiceName, System.Threading.CancellationToken cancellationToken = default);
static member DownloadPriceSheetAsync : Azure.ResourceManager.Resources.TenantResource * Azure.WaitUntil * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.DownloadURL>>
<Extension()>
Public Function DownloadPriceSheetAsync (tenantResource As TenantResource, waitUntil As WaitUntil, billingAccountName As String, billingProfileName As String, invoiceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DownloadURL))

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

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.

billingAccountName
String

The ID that uniquely identifies a billing account.

billingProfileName
String

The ID that uniquely identifies a billing profile.

invoiceName
String

The ID that uniquely identifies an invoice.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

billingAccountName, billingProfileName or invoiceName is an empty string, and was expected to be non-empty.

tenantResource, billingAccountName, billingProfileName or invoiceName is null.

Applies to