Skip to main content

generate_detailed_cost_report

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

Overview

Namegenerate_detailed_cost_report
TypeResource
Idazure.cost_management.generate_detailed_cost_report

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_operationexecscopeGenerates 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
scopestringThe ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes _. Required.

Lifecycle Methods

Generates 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.

EXEC azure.cost_management.generate_detailed_cost_report.create_operation 
@scope='{{ scope }}' --required
@@json=
'{
"metric": "{{ metric }}",
"timePeriod": "{{ timePeriod }}",
"billingPeriod": "{{ billingPeriod }}",
"invoiceId": "{{ invoiceId }}",
"customerId": "{{ customerId }}"
}'
;