-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix panic from removed not block (#26724)
- Loading branch information
Showing
2 changed files
with
24 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,11 +371,9 @@ resource "azurerm_consumption_budget_resource_group" "test" { | |
name = "acctestconsumptionbudgetresourcegroup-%d" | ||
resource_group_id = azurerm_resource_group.test.id | ||
// Changed the amount from 1000 to 2000 | ||
amount = 2000 | ||
time_grain = "Monthly" | ||
// Removed end_date | ||
time_period { | ||
start_date = "%s" | ||
} | ||
|
@@ -396,16 +394,13 @@ resource "azurerm_consumption_budget_resource_group" "test" { | |
] | ||
} | ||
// Added tag: zip | ||
tag { | ||
name = "zip" | ||
values = [ | ||
"zap", | ||
"zop", | ||
] | ||
} | ||
// Removed not block | ||
} | ||
notification { | ||
|
@@ -417,7 +412,6 @@ resource "azurerm_consumption_budget_resource_group" "test" { | |
threshold_type = "Forecasted" | ||
contact_emails = [ | ||
// Added [email protected] | ||
"[email protected]", | ||
"[email protected]", | ||
"[email protected]", | ||
|
@@ -426,22 +420,18 @@ resource "azurerm_consumption_budget_resource_group" "test" { | |
contact_groups = [ | ||
azurerm_monitor_action_group.test.id, | ||
] | ||
// Removed contact_roles | ||
} | ||
notification { | ||
// Set enabled to true | ||
enabled = true | ||
threshold = 100.0 | ||
// Changed from EqualTo to GreaterThanOrEqualTo | ||
operator = "GreaterThanOrEqualTo" | ||
operator = "GreaterThanOrEqualTo" | ||
contact_emails = [ | ||
"[email protected]", | ||
"[email protected]", | ||
] | ||
// Added contact_groups | ||
contact_groups = [ | ||
azurerm_monitor_action_group.test.id, | ||
] | ||
|