Microsoft.Consumption budgets 2018-06-30

The budgets resource type can be deployed to: Subscriptions,.

To learn about subscription deployments, see Bicep or ARM template

Template format

To create a Microsoft.Consumption/budgets resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Consumption/budgets@2018-06-30' = {
  name: 'string'
  eTag: 'string'
  properties: {
    amount: int
    category: 'string'
    filters: {
      meters: [ 'string' ]
      resourceGroups: [ 'string' ]
      resources: [ 'string' ]
      tags: {
        tagName1: 'tagValue1'
        tagName2: 'tagValue2'
      }
    }
    notifications: {}
    timeGrain: 'string'
    timePeriod: {
      endDate: 'string'
      startDate: 'string'
    }
  }
}

Property values

budgets

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Consumption/budgets'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2018-06-30'
name The resource name string (required)
eTag eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. string
properties The properties of the budget. BudgetProperties

BudgetProperties

Name Description Value
amount The total amount of cost to track with the budget int (required)
category The category of the budget, whether the budget tracks cost or usage. 'Cost'
'Usage'
filters May be used to filter budgets by resource group, resource, or meter. Filters
notifications Dictionary of notifications associated with the budget. Budget can have up to five notifications. object
timeGrain The time covered by a budget. Tracking of the amount will be reset based on the time grain. 'Annually'
'Monthly'
'Quarterly'
timePeriod The start and end date for a budget. BudgetTimePeriod (required)

Filters

Name Description Value
meters The list of filters on meters (GUID), mandatory for budgets of usage category. string[]
resourceGroups The list of filters on resource groups, allowed at subscription level only. string[]
resources The list of filters on resources. string[]
tags The dictionary of filters on tags. Dictionary of tag names and values. See Tags in templates

BudgetTimePeriod

Name Description Value
endDate The end date for the budget. If not provided, we default this to 10 years from the start date. string
startDate The start date for the budget. string (required)

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.