CostManagementExtensions.DownloadByBillingProfilePriceSheet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv file to a Zip file containing multiple csv files, each with max 200k records.
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download
- Operation Id: PriceSheet_DownloadByBillingProfile
public static Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.DownloadURL> DownloadByBillingProfilePriceSheet (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountName, string billingProfileName, System.Threading.CancellationToken cancellationToken = default);
static member DownloadByBillingProfilePriceSheet : Azure.ResourceManager.Resources.TenantResource * Azure.WaitUntil * string * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.DownloadURL>
<Extension()>
Public Function DownloadByBillingProfilePriceSheet (tenantResource As TenantResource, waitUntil As WaitUntil, billingAccountName As String, billingProfileName As String, Optional cancellationToken As CancellationToken = Nothing) As 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.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingAccountName
or billingProfileName
is an empty string, and was expected to be non-empty.
tenantResource
, billingAccountName
or billingProfileName
is null.
Applies to
Azure SDK for .NET