generate_detailed_cost_report
Creates, updates, deletes, gets or lists a generate_detailed_cost_report resource.
Overview
| Name | generate_detailed_cost_report |
| Type | Resource |
| Id | azure.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_operation | exec | scope | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
scope | string | The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes _. Required. |
Lifecycle Methods
- create_operation
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 }}"
}'
;