azure-native.consumption.Budget
Explore with Pulumi AI
A budget resource. Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2019-10-01.
Other available API versions: 2017-12-30-preview, 2018-10-01, 2019-05-01, 2019-06-01, 2023-11-01, 2024-08-01.
Example Usage
CreateOrUpdateBudget
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var budget = new AzureNative.Consumption.Budget("budget", new()
{
Amount = 100.65,
BudgetName = "TestBudget",
Category = AzureNative.Consumption.CategoryType.Cost,
ETag = "\"1d34d016a593709\"",
Filter = new AzureNative.Consumption.Inputs.BudgetFilterArgs
{
And = new[]
{
new AzureNative.Consumption.Inputs.BudgetFilterPropertiesArgs
{
Dimensions = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "ResourceId",
Operator = AzureNative.Consumption.BudgetOperatorType.In,
Values = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1",
},
},
},
new AzureNative.Consumption.Inputs.BudgetFilterPropertiesArgs
{
Tags = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "category",
Operator = AzureNative.Consumption.BudgetOperatorType.In,
Values = new[]
{
"Dev",
"Prod",
},
},
},
new AzureNative.Consumption.Inputs.BudgetFilterPropertiesArgs
{
Tags = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "department",
Operator = AzureNative.Consumption.BudgetOperatorType.In,
Values = new[]
{
"engineering",
"sales",
},
},
},
},
},
Notifications =
{
{ "Actual_GreaterThan_80_Percent", new AzureNative.Consumption.Inputs.NotificationArgs
{
ContactEmails = new[]
{
"johndoe@contoso.com",
"janesmith@contoso.com",
},
ContactGroups = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup",
},
ContactRoles = new[]
{
"Contributor",
"Reader",
},
Enabled = true,
Locale = AzureNative.Consumption.CultureCode.En_us,
Operator = AzureNative.Consumption.OperatorType.GreaterThan,
Threshold = 80,
ThresholdType = AzureNative.Consumption.ThresholdType.Actual,
} },
},
Scope = "subscriptions/00000000-0000-0000-0000-000000000000",
TimeGrain = AzureNative.Consumption.TimeGrainType.Monthly,
TimePeriod = new AzureNative.Consumption.Inputs.BudgetTimePeriodArgs
{
EndDate = "2018-10-31T00:00:00Z",
StartDate = "2017-10-01T00:00:00Z",
},
});
});
package main
import (
consumption "github.com/pulumi/pulumi-azure-native-sdk/consumption/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := consumption.NewBudget(ctx, "budget", &consumption.BudgetArgs{
Amount: pulumi.Float64(100.65),
BudgetName: pulumi.String("TestBudget"),
Category: pulumi.String(consumption.CategoryTypeCost),
ETag: pulumi.String("\"1d34d016a593709\""),
Filter: &consumption.BudgetFilterArgs{
And: consumption.BudgetFilterPropertiesArray{
&consumption.BudgetFilterPropertiesArgs{
Dimensions: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("ResourceId"),
Operator: pulumi.String(consumption.BudgetOperatorTypeIn),
Values: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2"),
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1"),
},
},
},
&consumption.BudgetFilterPropertiesArgs{
Tags: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("category"),
Operator: pulumi.String(consumption.BudgetOperatorTypeIn),
Values: pulumi.StringArray{
pulumi.String("Dev"),
pulumi.String("Prod"),
},
},
},
&consumption.BudgetFilterPropertiesArgs{
Tags: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("department"),
Operator: pulumi.String(consumption.BudgetOperatorTypeIn),
Values: pulumi.StringArray{
pulumi.String("engineering"),
pulumi.String("sales"),
},
},
},
},
},
Notifications: consumption.NotificationMap{
"Actual_GreaterThan_80_Percent": &consumption.NotificationArgs{
ContactEmails: pulumi.StringArray{
pulumi.String("johndoe@contoso.com"),
pulumi.String("janesmith@contoso.com"),
},
ContactGroups: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"),
},
ContactRoles: pulumi.StringArray{
pulumi.String("Contributor"),
pulumi.String("Reader"),
},
Enabled: pulumi.Bool(true),
Locale: pulumi.String(consumption.CultureCode_En_Us),
Operator: pulumi.String(consumption.OperatorTypeGreaterThan),
Threshold: pulumi.Float64(80),
ThresholdType: pulumi.String(consumption.ThresholdTypeActual),
},
},
Scope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
TimeGrain: pulumi.String(consumption.TimeGrainTypeMonthly),
TimePeriod: &consumption.BudgetTimePeriodArgs{
EndDate: pulumi.String("2018-10-31T00:00:00Z"),
StartDate: pulumi.String("2017-10-01T00:00:00Z"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.consumption.Budget;
import com.pulumi.azurenative.consumption.BudgetArgs;
import com.pulumi.azurenative.consumption.inputs.BudgetFilterArgs;
import com.pulumi.azurenative.consumption.inputs.BudgetTimePeriodArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var budget = new Budget("budget", BudgetArgs.builder()
.amount(100.65)
.budgetName("TestBudget")
.category("Cost")
.eTag("\"1d34d016a593709\"")
.filter(BudgetFilterArgs.builder()
.and(
BudgetFilterPropertiesArgs.builder()
.dimensions(BudgetComparisonExpressionArgs.builder()
.name("ResourceId")
.operator("In")
.values(
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1")
.build())
.build(),
BudgetFilterPropertiesArgs.builder()
.tags(BudgetComparisonExpressionArgs.builder()
.name("category")
.operator("In")
.values(
"Dev",
"Prod")
.build())
.build(),
BudgetFilterPropertiesArgs.builder()
.tags(BudgetComparisonExpressionArgs.builder()
.name("department")
.operator("In")
.values(
"engineering",
"sales")
.build())
.build())
.build())
.notifications(Map.of("Actual_GreaterThan_80_Percent", Map.ofEntries(
Map.entry("contactEmails",
"johndoe@contoso.com",
"janesmith@contoso.com"),
Map.entry("contactGroups", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"),
Map.entry("contactRoles",
"Contributor",
"Reader"),
Map.entry("enabled", true),
Map.entry("locale", "en-us"),
Map.entry("operator", "GreaterThan"),
Map.entry("threshold", 80),
Map.entry("thresholdType", "Actual")
)))
.scope("subscriptions/00000000-0000-0000-0000-000000000000")
.timeGrain("Monthly")
.timePeriod(BudgetTimePeriodArgs.builder()
.endDate("2018-10-31T00:00:00Z")
.startDate("2017-10-01T00:00:00Z")
.build())
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
budget = azure_native.consumption.Budget("budget",
amount=100.65,
budget_name="TestBudget",
category=azure_native.consumption.CategoryType.COST,
e_tag="\"1d34d016a593709\"",
filter={
"and_": [
{
"dimensions": {
"name": "ResourceId",
"operator": azure_native.consumption.BudgetOperatorType.IN_,
"values": [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1",
],
},
},
{
"tags": {
"name": "category",
"operator": azure_native.consumption.BudgetOperatorType.IN_,
"values": [
"Dev",
"Prod",
],
},
},
{
"tags": {
"name": "department",
"operator": azure_native.consumption.BudgetOperatorType.IN_,
"values": [
"engineering",
"sales",
],
},
},
],
},
notifications={
"Actual_GreaterThan_80_Percent": {
"contact_emails": [
"johndoe@contoso.com",
"janesmith@contoso.com",
],
"contact_groups": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"],
"contact_roles": [
"Contributor",
"Reader",
],
"enabled": True,
"locale": azure_native.consumption.CultureCode.EN_US,
"operator": azure_native.consumption.OperatorType.GREATER_THAN,
"threshold": 80,
"threshold_type": azure_native.consumption.ThresholdType.ACTUAL,
},
},
scope="subscriptions/00000000-0000-0000-0000-000000000000",
time_grain=azure_native.consumption.TimeGrainType.MONTHLY,
time_period={
"end_date": "2018-10-31T00:00:00Z",
"start_date": "2017-10-01T00:00:00Z",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const budget = new azure_native.consumption.Budget("budget", {
amount: 100.65,
budgetName: "TestBudget",
category: azure_native.consumption.CategoryType.Cost,
eTag: "\"1d34d016a593709\"",
filter: {
and: [
{
dimensions: {
name: "ResourceId",
operator: azure_native.consumption.BudgetOperatorType.In,
values: [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2",
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1",
],
},
},
{
tags: {
name: "category",
operator: azure_native.consumption.BudgetOperatorType.In,
values: [
"Dev",
"Prod",
],
},
},
{
tags: {
name: "department",
operator: azure_native.consumption.BudgetOperatorType.In,
values: [
"engineering",
"sales",
],
},
},
],
},
notifications: {
Actual_GreaterThan_80_Percent: {
contactEmails: [
"johndoe@contoso.com",
"janesmith@contoso.com",
],
contactGroups: ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup"],
contactRoles: [
"Contributor",
"Reader",
],
enabled: true,
locale: azure_native.consumption.CultureCode.En_us,
operator: azure_native.consumption.OperatorType.GreaterThan,
threshold: 80,
thresholdType: azure_native.consumption.ThresholdType.Actual,
},
},
scope: "subscriptions/00000000-0000-0000-0000-000000000000",
timeGrain: azure_native.consumption.TimeGrainType.Monthly,
timePeriod: {
endDate: "2018-10-31T00:00:00Z",
startDate: "2017-10-01T00:00:00Z",
},
});
resources:
budget:
type: azure-native:consumption:Budget
properties:
amount: 100.65
budgetName: TestBudget
category: Cost
eTag: '"1d34d016a593709"'
filter:
and:
- dimensions:
name: ResourceId
operator: In
values:
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/MSVM2
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Compute/virtualMachines/platformcloudplatformGeneric1
- tags:
name: category
operator: In
values:
- Dev
- Prod
- tags:
name: department
operator: In
values:
- engineering
- sales
notifications:
Actual_GreaterThan_80_Percent:
contactEmails:
- johndoe@contoso.com
- janesmith@contoso.com
contactGroups:
- /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/microsoft.insights/actionGroups/SampleActionGroup
contactRoles:
- Contributor
- Reader
enabled: true
locale: en-us
operator: GreaterThan
threshold: 80
thresholdType: Actual
scope: subscriptions/00000000-0000-0000-0000-000000000000
timeGrain: Monthly
timePeriod:
endDate: 2018-10-31T00:00:00Z
startDate: 2017-10-01T00:00:00Z
Create Budget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Budget(name: string, args: BudgetArgs, opts?: CustomResourceOptions);
@overload
def Budget(resource_name: str,
args: BudgetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Budget(resource_name: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[float] = None,
category: Optional[Union[str, CategoryType]] = None,
scope: Optional[str] = None,
time_grain: Optional[Union[str, TimeGrainType]] = None,
time_period: Optional[BudgetTimePeriodArgs] = None,
budget_name: Optional[str] = None,
e_tag: Optional[str] = None,
filter: Optional[BudgetFilterArgs] = None,
notifications: Optional[Mapping[str, NotificationArgs]] = None)
func NewBudget(ctx *Context, name string, args BudgetArgs, opts ...ResourceOption) (*Budget, error)
public Budget(string name, BudgetArgs args, CustomResourceOptions? opts = null)
public Budget(String name, BudgetArgs args)
public Budget(String name, BudgetArgs args, CustomResourceOptions options)
type: azure-native:consumption:Budget
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BudgetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var budgetResource = new AzureNative.Consumption.Budget("budgetResource", new()
{
Amount = 0,
Category = "string",
Scope = "string",
TimeGrain = "string",
TimePeriod = new AzureNative.Consumption.Inputs.BudgetTimePeriodArgs
{
StartDate = "string",
EndDate = "string",
},
BudgetName = "string",
ETag = "string",
Filter = new AzureNative.Consumption.Inputs.BudgetFilterArgs
{
And = new[]
{
new AzureNative.Consumption.Inputs.BudgetFilterPropertiesArgs
{
Dimensions = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
Tags = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
},
Dimensions = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
Tags = new AzureNative.Consumption.Inputs.BudgetComparisonExpressionArgs
{
Name = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
Notifications =
{
{ "string", new AzureNative.Consumption.Inputs.NotificationArgs
{
ContactEmails = new[]
{
"string",
},
Enabled = false,
Operator = "string",
Threshold = 0,
ContactGroups = new[]
{
"string",
},
ContactRoles = new[]
{
"string",
},
Locale = "string",
ThresholdType = "string",
} },
},
});
example, err := consumption.NewBudget(ctx, "budgetResource", &consumption.BudgetArgs{
Amount: pulumi.Float64(0),
Category: pulumi.String("string"),
Scope: pulumi.String("string"),
TimeGrain: pulumi.String("string"),
TimePeriod: &consumption.BudgetTimePeriodArgs{
StartDate: pulumi.String("string"),
EndDate: pulumi.String("string"),
},
BudgetName: pulumi.String("string"),
ETag: pulumi.String("string"),
Filter: &consumption.BudgetFilterArgs{
And: consumption.BudgetFilterPropertiesArray{
&consumption.BudgetFilterPropertiesArgs{
Dimensions: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Tags: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Dimensions: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Tags: &consumption.BudgetComparisonExpressionArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Notifications: consumption.NotificationMap{
"string": &consumption.NotificationArgs{
ContactEmails: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Operator: pulumi.String("string"),
Threshold: pulumi.Float64(0),
ContactGroups: pulumi.StringArray{
pulumi.String("string"),
},
ContactRoles: pulumi.StringArray{
pulumi.String("string"),
},
Locale: pulumi.String("string"),
ThresholdType: pulumi.String("string"),
},
},
})
var budgetResource = new Budget("budgetResource", BudgetArgs.builder()
.amount(0)
.category("string")
.scope("string")
.timeGrain("string")
.timePeriod(BudgetTimePeriodArgs.builder()
.startDate("string")
.endDate("string")
.build())
.budgetName("string")
.eTag("string")
.filter(BudgetFilterArgs.builder()
.and(BudgetFilterPropertiesArgs.builder()
.dimensions(BudgetComparisonExpressionArgs.builder()
.name("string")
.operator("string")
.values("string")
.build())
.tags(BudgetComparisonExpressionArgs.builder()
.name("string")
.operator("string")
.values("string")
.build())
.build())
.dimensions(BudgetComparisonExpressionArgs.builder()
.name("string")
.operator("string")
.values("string")
.build())
.tags(BudgetComparisonExpressionArgs.builder()
.name("string")
.operator("string")
.values("string")
.build())
.build())
.notifications(Map.of("string", Map.ofEntries(
Map.entry("contactEmails", "string"),
Map.entry("enabled", false),
Map.entry("operator", "string"),
Map.entry("threshold", 0),
Map.entry("contactGroups", "string"),
Map.entry("contactRoles", "string"),
Map.entry("locale", "string"),
Map.entry("thresholdType", "string")
)))
.build());
budget_resource = azure_native.consumption.Budget("budgetResource",
amount=0,
category="string",
scope="string",
time_grain="string",
time_period={
"start_date": "string",
"end_date": "string",
},
budget_name="string",
e_tag="string",
filter={
"and_": [{
"dimensions": {
"name": "string",
"operator": "string",
"values": ["string"],
},
"tags": {
"name": "string",
"operator": "string",
"values": ["string"],
},
}],
"dimensions": {
"name": "string",
"operator": "string",
"values": ["string"],
},
"tags": {
"name": "string",
"operator": "string",
"values": ["string"],
},
},
notifications={
"string": {
"contact_emails": ["string"],
"enabled": False,
"operator": "string",
"threshold": 0,
"contact_groups": ["string"],
"contact_roles": ["string"],
"locale": "string",
"threshold_type": "string",
},
})
const budgetResource = new azure_native.consumption.Budget("budgetResource", {
amount: 0,
category: "string",
scope: "string",
timeGrain: "string",
timePeriod: {
startDate: "string",
endDate: "string",
},
budgetName: "string",
eTag: "string",
filter: {
and: [{
dimensions: {
name: "string",
operator: "string",
values: ["string"],
},
tags: {
name: "string",
operator: "string",
values: ["string"],
},
}],
dimensions: {
name: "string",
operator: "string",
values: ["string"],
},
tags: {
name: "string",
operator: "string",
values: ["string"],
},
},
notifications: {
string: {
contactEmails: ["string"],
enabled: false,
operator: "string",
threshold: 0,
contactGroups: ["string"],
contactRoles: ["string"],
locale: "string",
thresholdType: "string",
},
},
});
type: azure-native:consumption:Budget
properties:
amount: 0
budgetName: string
category: string
eTag: string
filter:
and:
- dimensions:
name: string
operator: string
values:
- string
tags:
name: string
operator: string
values:
- string
dimensions:
name: string
operator: string
values:
- string
tags:
name: string
operator: string
values:
- string
notifications:
string:
contactEmails:
- string
contactGroups:
- string
contactRoles:
- string
enabled: false
locale: string
operator: string
threshold: 0
thresholdType: string
scope: string
timeGrain: string
timePeriod:
endDate: string
startDate: string
Budget Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Budget resource accepts the following input properties:
- Amount double
- The total amount of cost to track with the budget
- Category
string | Pulumi.
Azure Native. Consumption. Category Type - The category of the budget, whether the budget tracks cost or usage.
- Scope string
- The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- Time
Grain string | Pulumi.Azure Native. Consumption. Time Grain Type - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
- Time
Period Pulumi.Azure Native. Consumption. Inputs. Budget Time Period - 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- Budget
Name string - Budget Name.
- ETag string
- 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.
- Filter
Pulumi.
Azure Native. Consumption. Inputs. Budget Filter - May be used to filter budgets by user-specified dimensions and/or tags.
- Notifications
Dictionary<string, Pulumi.
Azure Native. Consumption. Inputs. Notification Args> - Dictionary of notifications associated with the budget. Budget can have up to five notifications.
- Amount float64
- The total amount of cost to track with the budget
- Category
string | Category
Type - The category of the budget, whether the budget tracks cost or usage.
- Scope string
- The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- Time
Grain string | TimeGrain Type - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
- Time
Period BudgetTime Period Args - 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- Budget
Name string - Budget Name.
- ETag string
- 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.
- Filter
Budget
Filter Args - May be used to filter budgets by user-specified dimensions and/or tags.
- Notifications
map[string]Notification
Args - Dictionary of notifications associated with the budget. Budget can have up to five notifications.
- amount Double
- The total amount of cost to track with the budget
- category
String | Category
Type - The category of the budget, whether the budget tracks cost or usage.
- scope String
- The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- time
Grain String | TimeGrain Type - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
- time
Period BudgetTime Period - 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- budget
Name String - Budget Name.
- e
Tag String - 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.
- filter
Budget
Filter - May be used to filter budgets by user-specified dimensions and/or tags.
- notifications
Map<String,Notification
Args> - Dictionary of notifications associated with the budget. Budget can have up to five notifications.
- amount number
- The total amount of cost to track with the budget
- category
string | Category
Type - The category of the budget, whether the budget tracks cost or usage.
- scope string
- The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- time
Grain string | TimeGrain Type - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
- time
Period BudgetTime Period - 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- budget
Name string - Budget Name.
- e
Tag string - 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.
- filter
Budget
Filter - May be used to filter budgets by user-specified dimensions and/or tags.
- notifications
{[key: string]: Notification
Args} - Dictionary of notifications associated with the budget. Budget can have up to five notifications.
- amount float
- The total amount of cost to track with the budget
- category
str | Category
Type - The category of the budget, whether the budget tracks cost or usage.
- scope str
- The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- time_
grain str | TimeGrain Type - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
- time_
period BudgetTime Period Args - 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- budget_
name str - Budget Name.
- e_
tag str - 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.
- filter
Budget
Filter Args - May be used to filter budgets by user-specified dimensions and/or tags.
- notifications
Mapping[str, Notification
Args] - Dictionary of notifications associated with the budget. Budget can have up to five notifications.
- amount Number
- The total amount of cost to track with the budget
- category String | "Cost"
- The category of the budget, whether the budget tracks cost or usage.
- scope String
- The scope associated with budget operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.
- time
Grain String | "Monthly" | "Quarterly" | "Annually" | "BillingMonth" | "Billing Quarter" | "Billing Annual" - The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers
- time
Period Property Map - 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- budget
Name String - Budget Name.
- e
Tag String - 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.
- filter Property Map
- May be used to filter budgets by user-specified dimensions and/or tags.
- notifications Map<Property Map>
- Dictionary of notifications associated with the budget. Budget can have up to five notifications.
Outputs
All input properties are implicitly available as output properties. Additionally, the Budget resource produces the following output properties:
- Current
Spend Pulumi.Azure Native. Consumption. Outputs. Current Spend Response - The current amount of cost which is being tracked for a budget.
- Forecast
Spend Pulumi.Azure Native. Consumption. Outputs. Forecast Spend Response - The forecasted cost which is being tracked for a budget.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- Current
Spend CurrentSpend Response - The current amount of cost which is being tracked for a budget.
- Forecast
Spend ForecastSpend Response - The forecasted cost which is being tracked for a budget.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Type string
- Resource type.
- current
Spend CurrentSpend Response - The current amount of cost which is being tracked for a budget.
- forecast
Spend ForecastSpend Response - The forecasted cost which is being tracked for a budget.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
- current
Spend CurrentSpend Response - The current amount of cost which is being tracked for a budget.
- forecast
Spend ForecastSpend Response - The forecasted cost which is being tracked for a budget.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- type string
- Resource type.
- current_
spend CurrentSpend Response - The current amount of cost which is being tracked for a budget.
- forecast_
spend ForecastSpend Response - The forecasted cost which is being tracked for a budget.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- type str
- Resource type.
- current
Spend Property Map - The current amount of cost which is being tracked for a budget.
- forecast
Spend Property Map - The forecasted cost which is being tracked for a budget.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- type String
- Resource type.
Supporting Types
BudgetComparisonExpression, BudgetComparisonExpressionArgs
- Name string
- The name of the column to use in comparison.
- Operator
string | Pulumi.
Azure Native. Consumption. Budget Operator Type - The operator to use for comparison.
- Values List<string>
- Array of values to use for comparison
- Name string
- The name of the column to use in comparison.
- Operator
string | Budget
Operator Type - The operator to use for comparison.
- Values []string
- Array of values to use for comparison
- name String
- The name of the column to use in comparison.
- operator
String | Budget
Operator Type - The operator to use for comparison.
- values List<String>
- Array of values to use for comparison
- name string
- The name of the column to use in comparison.
- operator
string | Budget
Operator Type - The operator to use for comparison.
- values string[]
- Array of values to use for comparison
- name str
- The name of the column to use in comparison.
- operator
str | Budget
Operator Type - The operator to use for comparison.
- values Sequence[str]
- Array of values to use for comparison
BudgetComparisonExpressionResponse, BudgetComparisonExpressionResponseArgs
BudgetFilter, BudgetFilterArgs
- And
List<Pulumi.
Azure Native. Consumption. Inputs. Budget Filter Properties> - The logical "AND" expression. Must have at least 2 items.
- Dimensions
Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression - Has comparison expression for a dimension
- Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression - Has comparison expression for a tag
- And
[]Budget
Filter Properties - The logical "AND" expression. Must have at least 2 items.
- Dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- and
List<Budget
Filter Properties> - The logical "AND" expression. Must have at least 2 items.
- dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- and
Budget
Filter Properties[] - The logical "AND" expression. Must have at least 2 items.
- dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- and_
Sequence[Budget
Filter Properties] - The logical "AND" expression. Must have at least 2 items.
- dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- and List<Property Map>
- The logical "AND" expression. Must have at least 2 items.
- dimensions Property Map
- Has comparison expression for a dimension
- Property Map
- Has comparison expression for a tag
BudgetFilterProperties, BudgetFilterPropertiesArgs
- Dimensions
Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression - Has comparison expression for a dimension
- Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression - Has comparison expression for a tag
- Dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- dimensions
Budget
Comparison Expression - Has comparison expression for a dimension
- Budget
Comparison Expression - Has comparison expression for a tag
- dimensions Property Map
- Has comparison expression for a dimension
- Property Map
- Has comparison expression for a tag
BudgetFilterPropertiesResponse, BudgetFilterPropertiesResponseArgs
- Dimensions
Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression Response - Has comparison expression for a dimension
- Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression Response - Has comparison expression for a tag
- Dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- dimensions Property Map
- Has comparison expression for a dimension
- Property Map
- Has comparison expression for a tag
BudgetFilterResponse, BudgetFilterResponseArgs
- And
List<Pulumi.
Azure Native. Consumption. Inputs. Budget Filter Properties Response> - The logical "AND" expression. Must have at least 2 items.
- Dimensions
Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression Response - Has comparison expression for a dimension
- Pulumi.
Azure Native. Consumption. Inputs. Budget Comparison Expression Response - Has comparison expression for a tag
- And
[]Budget
Filter Properties Response - The logical "AND" expression. Must have at least 2 items.
- Dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- and
List<Budget
Filter Properties Response> - The logical "AND" expression. Must have at least 2 items.
- dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- and
Budget
Filter Properties Response[] - The logical "AND" expression. Must have at least 2 items.
- dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- and_
Sequence[Budget
Filter Properties Response] - The logical "AND" expression. Must have at least 2 items.
- dimensions
Budget
Comparison Expression Response - Has comparison expression for a dimension
- Budget
Comparison Expression Response - Has comparison expression for a tag
- and List<Property Map>
- The logical "AND" expression. Must have at least 2 items.
- dimensions Property Map
- Has comparison expression for a dimension
- Property Map
- Has comparison expression for a tag
BudgetOperatorType, BudgetOperatorTypeArgs
- In
- In
- Budget
Operator Type In - In
- In
- In
- In
- In
- IN_
- In
- "In"
- In
BudgetTimePeriod, BudgetTimePeriodArgs
- start_
date str - The start date for the budget.
- end_
date str - The end date for the budget. If not provided, we default this to 10 years from the start date.
BudgetTimePeriodResponse, BudgetTimePeriodResponseArgs
- start_
date str - The start date for the budget.
- end_
date str - The end date for the budget. If not provided, we default this to 10 years from the start date.
CategoryType, CategoryTypeArgs
- Cost
- Cost
- Category
Type Cost - Cost
- Cost
- Cost
- Cost
- Cost
- COST
- Cost
- "Cost"
- Cost
CultureCode, CultureCodeArgs
- En_
us - en-us
- Ja_
jp - ja-jp
- Zh_
cn - zh-cn
- De_
de - de-de
- Es_
es - es-es
- Fr_
fr - fr-fr
- It_
it - it-it
- Ko_
kr - ko-kr
- Pt_
br - pt-br
- Ru_
ru - ru-ru
- Zh_
tw - zh-tw
- Cs_
cz - cs-cz
- Pl_
pl - pl-pl
- Tr_
tr - tr-tr
- Da_
dk - da-dk
- En_
gb - en-gb
- Hu_
hu - hu-hu
- Nb_
no - nb-no
- Nl_
nl - nl-nl
- Pt_
pt - pt-pt
- Sv_
se - sv-se
- Culture
Code_En_Us - en-us
- Culture
Code_Ja_Jp - ja-jp
- Culture
Code_Zh_Cn - zh-cn
- Culture
Code_De_De - de-de
- Culture
Code_Es_Es - es-es
- Culture
Code_Fr_Fr - fr-fr
- Culture
Code_It_It - it-it
- Culture
Code_Ko_Kr - ko-kr
- Culture
Code_Pt_Br - pt-br
- Culture
Code_Ru_Ru - ru-ru
- Culture
Code_Zh_Tw - zh-tw
- Culture
Code_Cs_Cz - cs-cz
- Culture
Code_Pl_Pl - pl-pl
- Culture
Code_Tr_Tr - tr-tr
- Culture
Code_Da_Dk - da-dk
- Culture
Code_En_Gb - en-gb
- Culture
Code_Hu_Hu - hu-hu
- Culture
Code_Nb_No - nb-no
- Culture
Code_Nl_Nl - nl-nl
- Culture
Code_Pt_Pt - pt-pt
- Culture
Code_Sv_Se - sv-se
- Enus
- en-us
- Jajp
- ja-jp
- Zhcn
- zh-cn
- Dede
- de-de
- Eses
- es-es
- Frfr
- fr-fr
- Itit
- it-it
- Kokr
- ko-kr
- Ptbr
- pt-br
- Ruru
- ru-ru
- Zhtw
- zh-tw
- Cscz
- cs-cz
- Plpl
- pl-pl
- Trtr
- tr-tr
- Dadk
- da-dk
- Engb
- en-gb
- Huhu
- hu-hu
- Nbno
- nb-no
- Nlnl
- nl-nl
- Ptpt
- pt-pt
- Svse
- sv-se
- En_
us - en-us
- Ja_
jp - ja-jp
- Zh_
cn - zh-cn
- De_
de - de-de
- Es_
es - es-es
- Fr_
fr - fr-fr
- It_
it - it-it
- Ko_
kr - ko-kr
- Pt_
br - pt-br
- Ru_
ru - ru-ru
- Zh_
tw - zh-tw
- Cs_
cz - cs-cz
- Pl_
pl - pl-pl
- Tr_
tr - tr-tr
- Da_
dk - da-dk
- En_
gb - en-gb
- Hu_
hu - hu-hu
- Nb_
no - nb-no
- Nl_
nl - nl-nl
- Pt_
pt - pt-pt
- Sv_
se - sv-se
- EN_US
- en-us
- JA_JP
- ja-jp
- ZH_CN
- zh-cn
- DE_DE
- de-de
- ES_ES
- es-es
- FR_FR
- fr-fr
- IT_IT
- it-it
- KO_KR
- ko-kr
- PT_BR
- pt-br
- RU_RU
- ru-ru
- ZH_TW
- zh-tw
- CS_CZ
- cs-cz
- PL_PL
- pl-pl
- TR_TR
- tr-tr
- DA_DK
- da-dk
- EN_GB
- en-gb
- HU_HU
- hu-hu
- NB_NO
- nb-no
- NL_NL
- nl-nl
- PT_PT
- pt-pt
- SV_SE
- sv-se
- "en-us"
- en-us
- "ja-jp"
- ja-jp
- "zh-cn"
- zh-cn
- "de-de"
- de-de
- "es-es"
- es-es
- "fr-fr"
- fr-fr
- "it-it"
- it-it
- "ko-kr"
- ko-kr
- "pt-br"
- pt-br
- "ru-ru"
- ru-ru
- "zh-tw"
- zh-tw
- "cs-cz"
- cs-cz
- "pl-pl"
- pl-pl
- "tr-tr"
- tr-tr
- "da-dk"
- da-dk
- "en-gb"
- en-gb
- "hu-hu"
- hu-hu
- "nb-no"
- nb-no
- "nl-nl"
- nl-nl
- "pt-pt"
- pt-pt
- "sv-se"
- sv-se
CurrentSpendResponse, CurrentSpendResponseArgs
ForecastSpendResponse, ForecastSpendResponseArgs
Notification, NotificationArgs
- Contact
Emails List<string> - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- Enabled bool
- The notification is enabled or not.
- Operator
string | Pulumi.
Azure Native. Consumption. Operator Type - The comparison operator.
- Threshold double
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- Contact
Groups List<string> - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- Contact
Roles List<string> - Contact roles to send the budget notification to when the threshold is exceeded.
- Locale
string | Pulumi.
Azure Native. Consumption. Culture Code - Language in which the recipient will receive the notification
- Threshold
Type string | Pulumi.Azure Native. Consumption. Threshold Type - The type of threshold
- Contact
Emails []string - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- Enabled bool
- The notification is enabled or not.
- Operator
string | Operator
Type - The comparison operator.
- Threshold float64
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- Contact
Groups []string - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- Contact
Roles []string - Contact roles to send the budget notification to when the threshold is exceeded.
- Locale
string | Culture
Code - Language in which the recipient will receive the notification
- Threshold
Type string | ThresholdType - The type of threshold
- contact
Emails List<String> - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled Boolean
- The notification is enabled or not.
- operator
String | Operator
Type - The comparison operator.
- threshold Double
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact
Groups List<String> - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact
Roles List<String> - Contact roles to send the budget notification to when the threshold is exceeded.
- locale
String | Culture
Code - Language in which the recipient will receive the notification
- threshold
Type String | ThresholdType - The type of threshold
- contact
Emails string[] - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled boolean
- The notification is enabled or not.
- operator
string | Operator
Type - The comparison operator.
- threshold number
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact
Groups string[] - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact
Roles string[] - Contact roles to send the budget notification to when the threshold is exceeded.
- locale
string | Culture
Code - Language in which the recipient will receive the notification
- threshold
Type string | ThresholdType - The type of threshold
- contact_
emails Sequence[str] - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled bool
- The notification is enabled or not.
- operator
str | Operator
Type - The comparison operator.
- threshold float
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact_
groups Sequence[str] - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact_
roles Sequence[str] - Contact roles to send the budget notification to when the threshold is exceeded.
- locale
str | Culture
Code - Language in which the recipient will receive the notification
- threshold_
type str | ThresholdType - The type of threshold
- contact
Emails List<String> - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled Boolean
- The notification is enabled or not.
- operator
String | "Equal
To" | "Greater Than" | "Greater Than Or Equal To" - The comparison operator.
- threshold Number
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact
Groups List<String> - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact
Roles List<String> - Contact roles to send the budget notification to when the threshold is exceeded.
- locale String | "en-us" | "ja-jp" | "zh-cn" | "de-de" | "es-es" | "fr-fr" | "it-it" | "ko-kr" | "pt-br" | "ru-ru" | "zh-tw" | "cs-cz" | "pl-pl" | "tr-tr" | "da-dk" | "en-gb" | "hu-hu" | "nb-no" | "nl-nl" | "pt-pt" | "sv-se"
- Language in which the recipient will receive the notification
- threshold
Type String | "Actual" | "Forecasted" - The type of threshold
NotificationResponse, NotificationResponseArgs
- Contact
Emails List<string> - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- Enabled bool
- The notification is enabled or not.
- Operator string
- The comparison operator.
- Threshold double
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- Contact
Groups List<string> - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- Contact
Roles List<string> - Contact roles to send the budget notification to when the threshold is exceeded.
- Locale string
- Language in which the recipient will receive the notification
- Threshold
Type string - The type of threshold
- Contact
Emails []string - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- Enabled bool
- The notification is enabled or not.
- Operator string
- The comparison operator.
- Threshold float64
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- Contact
Groups []string - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- Contact
Roles []string - Contact roles to send the budget notification to when the threshold is exceeded.
- Locale string
- Language in which the recipient will receive the notification
- Threshold
Type string - The type of threshold
- contact
Emails List<String> - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled Boolean
- The notification is enabled or not.
- operator String
- The comparison operator.
- threshold Double
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact
Groups List<String> - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact
Roles List<String> - Contact roles to send the budget notification to when the threshold is exceeded.
- locale String
- Language in which the recipient will receive the notification
- threshold
Type String - The type of threshold
- contact
Emails string[] - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled boolean
- The notification is enabled or not.
- operator string
- The comparison operator.
- threshold number
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact
Groups string[] - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact
Roles string[] - Contact roles to send the budget notification to when the threshold is exceeded.
- locale string
- Language in which the recipient will receive the notification
- threshold
Type string - The type of threshold
- contact_
emails Sequence[str] - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled bool
- The notification is enabled or not.
- operator str
- The comparison operator.
- threshold float
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact_
groups Sequence[str] - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact_
roles Sequence[str] - Contact roles to send the budget notification to when the threshold is exceeded.
- locale str
- Language in which the recipient will receive the notification
- threshold_
type str - The type of threshold
- contact
Emails List<String> - Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.
- enabled Boolean
- The notification is enabled or not.
- operator String
- The comparison operator.
- threshold Number
- Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
- contact
Groups List<String> - Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
- contact
Roles List<String> - Contact roles to send the budget notification to when the threshold is exceeded.
- locale String
- Language in which the recipient will receive the notification
- threshold
Type String - The type of threshold
OperatorType, OperatorTypeArgs
- Equal
To - EqualToAlert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.
- Greater
Than - GreaterThanAlert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.
- Greater
Than Or Equal To - GreaterThanOrEqualToAlert will be triggered if the evaluated cost is greater than or equal to the threshold value.
- Operator
Type Equal To - EqualToAlert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.
- Operator
Type Greater Than - GreaterThanAlert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.
- Operator
Type Greater Than Or Equal To - GreaterThanOrEqualToAlert will be triggered if the evaluated cost is greater than or equal to the threshold value.
- Equal
To - EqualToAlert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.
- Greater
Than - GreaterThanAlert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.
- Greater
Than Or Equal To - GreaterThanOrEqualToAlert will be triggered if the evaluated cost is greater than or equal to the threshold value.
- Equal
To - EqualToAlert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.
- Greater
Than - GreaterThanAlert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.
- Greater
Than Or Equal To - GreaterThanOrEqualToAlert will be triggered if the evaluated cost is greater than or equal to the threshold value.
- EQUAL_TO
- EqualToAlert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.
- GREATER_THAN
- GreaterThanAlert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.
- GREATER_THAN_OR_EQUAL_TO
- GreaterThanOrEqualToAlert will be triggered if the evaluated cost is greater than or equal to the threshold value.
- "Equal
To" - EqualToAlert will be triggered if the evaluated cost is the same as threshold value. Note: It’s not recommended to use this OperatorType as there’s low chance of cost being exactly the same as threshold value, leading to missing of your alert. This OperatorType will be deprecated in future.
- "Greater
Than" - GreaterThanAlert will be triggered if the evaluated cost is greater than the threshold value. Note: This is the recommended OperatorType while configuring Budget Alert.
- "Greater
Than Or Equal To" - GreaterThanOrEqualToAlert will be triggered if the evaluated cost is greater than or equal to the threshold value.
ThresholdType, ThresholdTypeArgs
- Actual
- ActualActual costs budget alerts notify when the actual accrued cost exceeds the allocated budget .
- Forecasted
- ForecastedForecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.
- Threshold
Type Actual - ActualActual costs budget alerts notify when the actual accrued cost exceeds the allocated budget .
- Threshold
Type Forecasted - ForecastedForecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.
- Actual
- ActualActual costs budget alerts notify when the actual accrued cost exceeds the allocated budget .
- Forecasted
- ForecastedForecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.
- Actual
- ActualActual costs budget alerts notify when the actual accrued cost exceeds the allocated budget .
- Forecasted
- ForecastedForecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.
- ACTUAL
- ActualActual costs budget alerts notify when the actual accrued cost exceeds the allocated budget .
- FORECASTED
- ForecastedForecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.
- "Actual"
- ActualActual costs budget alerts notify when the actual accrued cost exceeds the allocated budget .
- "Forecasted"
- ForecastedForecasted costs budget alerts provide advanced notification that your spending trends are likely to exceed your allocated budget, as it relies on forecasted cost predictions.
TimeGrainType, TimeGrainTypeArgs
- Monthly
- Monthly
- Quarterly
- Quarterly
- Annually
- Annually
- Billing
Month - BillingMonth
- Billing
Quarter - BillingQuarter
- Billing
Annual - BillingAnnual
- Time
Grain Type Monthly - Monthly
- Time
Grain Type Quarterly - Quarterly
- Time
Grain Type Annually - Annually
- Time
Grain Type Billing Month - BillingMonth
- Time
Grain Type Billing Quarter - BillingQuarter
- Time
Grain Type Billing Annual - BillingAnnual
- Monthly
- Monthly
- Quarterly
- Quarterly
- Annually
- Annually
- Billing
Month - BillingMonth
- Billing
Quarter - BillingQuarter
- Billing
Annual - BillingAnnual
- Monthly
- Monthly
- Quarterly
- Quarterly
- Annually
- Annually
- Billing
Month - BillingMonth
- Billing
Quarter - BillingQuarter
- Billing
Annual - BillingAnnual
- MONTHLY
- Monthly
- QUARTERLY
- Quarterly
- ANNUALLY
- Annually
- BILLING_MONTH
- BillingMonth
- BILLING_QUARTER
- BillingQuarter
- BILLING_ANNUAL
- BillingAnnual
- "Monthly"
- Monthly
- "Quarterly"
- Quarterly
- "Annually"
- Annually
- "Billing
Month" - BillingMonth
- "Billing
Quarter" - BillingQuarter
- "Billing
Annual" - BillingAnnual
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:consumption:Budget TestBudget /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0