MockableCostManagementArmClient.ByBillingProfileIdGenerateReservationDetailsReportAsync Method

Definition

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. : GenerateReservationDetailsReportOperationGroup_ByBillingProfileId.
  • Default Api Version. : 2025-03-01.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>> ByBillingProfileIdGenerateReservationDetailsReportAsync(Azure.WaitUntil waitUntil, Azure.Core.ResourceIdentifier scope, string startDate, string endDate, System.Threading.CancellationToken cancellationToken = default);
abstract member ByBillingProfileIdGenerateReservationDetailsReportAsync : Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>>
override this.ByBillingProfileIdGenerateReservationDetailsReportAsync : Azure.WaitUntil * Azure.Core.ResourceIdentifier * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CostManagement.Models.OperationStatus>>
Public Overridable Function ByBillingProfileIdGenerateReservationDetailsReportAsync (waitUntil As WaitUntil, scope As ResourceIdentifier, startDate As String, endDate As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of OperationStatus))

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.

startDate
String

Start Date.

endDate
String

End Date.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scope, startDate or endDate is null.

startDate or endDate is an empty string, and was expected to be non-empty.

Applies to