CostManagementExtensions.ByBillingProfileIdGenerateReservationDetailsReportAsync 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.
Generates the reservations details report for provided date range asynchronously by billing profile. The Reservation usage details can be viewed by only certain enterprise roles by default. For more details on the roles see, https://docs.microsoft.com/en-us/azure/cost-management-billing/reservations/reservation-utilization#view-utilization-in-the-azure-portal-with-azure-rbac-access
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/generateReservationDetailsReport
- Operation Id: GenerateReservationDetailsReport_ByBillingProfileId
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>> ByBillingProfileIdGenerateReservationDetailsReportAsync (this Azure.ResourceManager.Resources.TenantResource tenantResource, Azure.WaitUntil waitUntil, string billingAccountId, string billingProfileId, string startDate, string endDate, System.Threading.CancellationToken cancellationToken = default);
static member ByBillingProfileIdGenerateReservationDetailsReportAsync : Azure.ResourceManager.Resources.TenantResource * Azure.WaitUntil * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>>
<Extension()>
Public Function ByBillingProfileIdGenerateReservationDetailsReportAsync (tenantResource As TenantResource, waitUntil As WaitUntil, billingAccountId As String, billingProfileId As String, startDate As String, endDate As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of OperationStatus))
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.
- billingAccountId
- String
Billing account ID.
- billingProfileId
- String
Billing profile ID.
- startDate
- String
Start Date.
- endDate
- String
End Date.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingAccountId
or billingProfileId
is an empty string, and was expected to be non-empty.
tenantResource
, billingAccountId
, billingProfileId
, startDate
or endDate
is null.