This commit is contained in:
parent
698da8604a
commit
e04feb0599
21
azure-budget.tf
Normal file
21
azure-budget.tf
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
data "azurerm_subscription" "current-subscription" {}
|
||||||
|
|
||||||
|
resource "azurerm_consumption_budget_subscription" "subscription-budget" {
|
||||||
|
name = "subscription-budget"
|
||||||
|
subscription_id = data.azurerm_subscription-subscription.current.id
|
||||||
|
|
||||||
|
amount = 5
|
||||||
|
time_grain = "Monthly"
|
||||||
|
|
||||||
|
|
||||||
|
notification {
|
||||||
|
enabled = enabled
|
||||||
|
threshold = 85.0
|
||||||
|
operator = "GreaterThan"
|
||||||
|
threshold_type = "Forecasted"
|
||||||
|
|
||||||
|
contact_roles = [
|
||||||
|
"Owner",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user