Az.CostManagement

Microsoft Azure PowerShell: Cost cmdlets

Cost Management

Get-AzCostManagementExport

The operation to get the export for the defined scope by export name.

Get-AzCostManagementExportExecutionHistory

The operation to get the execution history of an export for the defined scope and export name.

Invoke-AzCostManagementExecuteExport

The operation to execute an export.

Invoke-AzCostManagementQuery

Query the usage data for scope defined.

Invoke-AzCostManagementReservationDetailReport

Generates the reservations details report for provided date range asynchronously based on enrollment id. The Reservation usage details can be viewed only by certain enterprise roles. For more details on the roles see, https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/understand-ea-roles#usage-and-costs-access-by-role

New-AzCostManagementDetailReport

This API is the replacement for all previously release Usage Details APIs. Request to generate a cost details report for the provided date range, billing period (Only enterprise customers) or Invoice Id asynchronously at a certain scope. The initial call to request a report will return a 202 with a 'Location' and 'Retry-After' header. The 'Location' header will provide the endpoint to poll to get the result of the report generation. The 'Retry-After' provides the duration to wait before polling for the generated report. A call to poll the report operation will provide a 202 response with a 'Location' header if the operation is still in progress. Once the report generation operation completes, the polling endpoint will provide a 200 response along with details on the report blob(s) that are available for download. The details on the file(s) available for download will be available in the polling response body.

New-AzCostManagementExport

The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.

New-AzCostManagementQueryComparisonExpressionObject

Create a in-memory object for QueryComparisonExpression

New-AzCostManagementQueryFilterObject

Create a in-memory object for QueryFilter

Remove-AzCostManagementExport

The operation to delete a export.

Update-AzCostManagementExport

The operation to create or update a export. Update operation requires latest eTag to be set in the request. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.