I am running terraform on version >=2.90
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=2.90"
}
}
}
resource "azurerm_resource_group" "example" {
name = "resourceGroupExample"
location = "westeurope"
}
resource "azurerm_frontdoor" "frontdoor" {
name = "frontdoor"
resource_group_name = azurerm_resource_group.example.name
enforce_backend_pools_certificate_name_check = true
}
It was working fine before and suddenly it didn’t. I am getting error
Error: "resourceGroupExample" was not found in the list of supported Azure Locations`
with azurerm_frontdoor.frontdoor
when running terraform plan
I updated it to v2.94 but still didn’t work.
I see that there is no location in frontdoor and documentations says it is set to global
Later I changed it to “=2.93.1” which worked.