Skip to main content

detailed_cost_reports

Creates, updates, deletes, gets or lists a detailed_cost_reports resource.

Overview

Namedetailed_cost_reports
TypeResource
Idazure.cost_management.detailed_cost_reports

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
create_operationINSERTscopeGenerates the detailed cost report for provided date range, billing period(only enterprise customers) or Invoice ID asynchronously at a certain scope. Call returns a 202 with header Azure-Consumption-AsyncOperation providing a link to the operation created. A call on the operation will provide the status and if the operation is completed the blob file where generated detailed cost report is being stored.

INSERT example

Use the following StackQL query and manifest file to create a new detailed_cost_reports resource.

/*+ create */
INSERT INTO azure.cost_management.detailed_cost_reports (
scope,
metric,
timePeriod,
billingPeriod,
invoiceId,
customerId
)
SELECT
'{{ scope }}',
'{{ metric }}',
'{{ timePeriod }}',
'{{ billingPeriod }}',
'{{ invoiceId }}',
'{{ customerId }}'
;