az consumption usage

Command group 'consumption' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Inspect the usage of Azure resources.

Commands

Name Description Type Status
az consumption usage list

List the details of Azure resource consumption, either as an invoice or within a billing period.

Core Preview

az consumption usage list

Preview

Command group 'consumption' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List the details of Azure resource consumption, either as an invoice or within a billing period.

az consumption usage list [--billing-period-name]
                          [--end-date]
                          [--include-additional-properties]
                          [--include-meter-details]
                          [--max-items]
                          [--next-token]
                          [--start-date]
                          [--top]

Optional Parameters

--billing-period-name -p

Name of the billing period to get the usage details that associate with.

--end-date -e

End date (YYYY-MM-DD in UTC). If specified, also requires --start-date.

--include-additional-properties -a

Include additional properties in the usages.

--include-meter-details -m

Include meter details in the usages.

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

--start-date -s

Start date (YYYY-MM-DD in UTC). If specified, also requires --end-date.

--top -t

Maximum number of items to return. Value range: 1-1000.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.