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 of a budget.
Name of a budget.
Category of the budget can be cost or usage.
End date (YYYY-MM-DD in UTC) of time period of a budget.
Start date (YYYY-MM-DD in UTC) of time period of a budget.
Time grain of the budget can be monthly, quarterly, or annually.
Optional Parameters
Space-separated list of meters to filter on. Required if category is usage.
Space-separated list of resource instances to filter on.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Space-separated list of resource groups to filter on.
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
Name of a budget.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 [--resource-group]
[--subscription]
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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
[--resource-group]
[--subscription]
Examples
Show budget for an Azure subscription. (autogenerated)
az consumption budget show --budget-name MyBudget
Required Parameters
Name of a budget.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Feedback
Loading feedback...