add azure budget
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2022-05-17 19:13:38 +02:00
parent 698da8604a
commit e04feb0599

21
azure-budget.tf Normal file
View 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",
]
}
}