az consumption budget

Manage budgets for an Azure subscription.

Commands

az consumption budget create

Create a budget for an Azure subscription.

az consumption budget delete

Delete a budget for an Azure subscription.

az consumption budget list

List budgets for an Azure subscription.

az consumption budget show

Show budget for an Azure subscription.

az consumption budget create

Create a budget for an Azure subscription.

az consumption budget create --amount
                             --budget-name
                             --category {cost, usage}
                             --end-date
                             --start-date
                             --time-grain {annually, monthly, quarterly}
                             [--meter-filter]
                             [--resource-filter]
                             [--resource-group]
                             [--resource-group-filter]
                             [--subscription]

Required Parameters

--amount

Amount of a budget.

--budget-name

Name of a budget.

--category

Category of the budget can be cost or usage.

accepted values: cost, usage
--end-date -e

End date (YYYY-MM-DD in UTC) of time period of a budget.

--start-date -s

Start date (YYYY-MM-DD in UTC) of time period of a budget.

--time-grain

Time grain of the budget can be monthly, quarterly, or annually.

accepted values: annually, monthly, quarterly

Optional Parameters

--meter-filter

Space-separated list of meters to filter on. Required if category is usage.

--resource-filter

Space-separated list of resource instances to filter on.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--resource-group-filter

Space-separated list of resource groups to filter on.

--subscription

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

az consumption budget delete

Delete a budget for an Azure subscription.

az consumption budget delete --budget-name
                             [--resource-group]
                             [--subscription]

Examples

Delete a budget for an Azure subscription. (autogenerated)

az consumption budget delete --budget-name MyBudget

Required Parameters

--budget-name

Name of a budget.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az consumption budget list

List budgets for an Azure subscription.

az consumption budget list [--query-examples]
                           [--resource-group]
                           [--subscription]

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az consumption budget show

Show budget for an Azure subscription.

az consumption budget show --budget-name
                           [--query-examples]
                           [--resource-group]
                           [--subscription]

Examples

Show budget for an Azure subscription. (autogenerated)

az consumption budget show --budget-name MyBudget

Required Parameters

--budget-name

Name of a budget.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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