Microsoft.Consumption budgets template reference

Template format

To create a Microsoft.Consumption/budgets resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.Consumption/budgets",
  "apiVersion": "2018-06-30",
  "properties": {
    "category": "string",
    "amount": "number",
    "timeGrain": "string",
    "timePeriod": {
      "startDate": "string",
      "endDate": "string"
    "filters": {
      "resourceGroups": [
      "resources": [],
      "meters": [
      "tags": {}
    "notifications": {}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Consumption/budgets object

Name Type Required Value
name string Yes Budget Name.
type enum Yes Microsoft.Consumption/budgets
apiVersion enum Yes 2018-06-30
properties object Yes BudgetProperties object

BudgetProperties object

Name Type Required Value
category enum Yes The category of the budget, whether the budget tracks cost or usage. - Cost or Usage
amount number Yes The total amount of cost to track with the budget
timeGrain enum Yes The time covered by a budget. Tracking of the amount will be reset based on the time grain. - Monthly, Quarterly, Annually
timePeriod object Yes Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than three months. Past start date should be selected within the timegrain period. There are no restrictions on the end date. - BudgetTimePeriod object
filters object No May be used to filter budgets by resource group, resource, or meter. - Filters object
notifications object No Dictionary of notifications associated with the budget. Budget can have up to five notifications.

BudgetTimePeriod object

Name Type Required Value
startDate string Yes The start date for the budget.
endDate string No The end date for the budget. If not provided, we default this to 10 years from the start date.

Filters object

Name Type Required Value
resourceGroups array No The list of filters on resource groups, allowed at subscription level only. - string
resources array No The list of filters on resources. - string
meters array No The list of filters on meters (GUID), mandatory for budgets of usage category. - string
tags object No The dictionary of filters on tags.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a Budget

Deploy to Azure
This template shows how to create a budget under a subscription.