Open HS-Lim opened 2 years ago
provider "azurerm" { features {} environment = "usgovernment" # Set the Azure Government environment version = "2.88.1" }
resource "azurerm_monitor_activity_log_alert" "resource_health" { name = "Resource Health Alert" resource_group_name = var.resource_group_name scopes = [var.subscription_id] description = "This alert monitors resource health on a resource to resource granularity." criteria { category = "ResourceHealth" } action { action_group_id = azurerm_monitor_action_group.email.id webhook_properties = {} }
depends_on = [provider.azurerm] }
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.11 on windows_amd64
Affected Resource(s)
azurerm_monitor_activity_log_alert
Terraform Configuration Files
Expected Behaviour
An activity log alert of category Resource Health should be created.
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
Issue occurs when utilizing Azure Government environment, location US Gov Virginia. Issue is not reproduced when using public environment, presumably because the api version 2020-10-01 is available.