hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.62k forks source link

azurerm_email_communication_service required data locations doesn't allow usgov (Azure Government) #27689

Closed jjm123960 closed 2 hours ago

jjm123960 commented 3 hours ago

Is there an existing issue for this?

Community Note

Terraform Version

1.9.8

AzureRM Provider Version

4.5.0

Affected Resource(s)/Data Source(s)

azurerm_email_communication_service

Terraform Configuration Files

resource "azurerm_resource_group" "resource_group" {
  name     = "example"
  location = "usgovvirginia"
}

resource "azurerm_communication_service" "communication_service" {
  name                = "example"
  resource_group_name = azurerm_resource_group.resource_group.name
  data_location       = "usgov"
}

Debug Output/Panic Output

If using data_location United States:

│ Error: creating Communication Service (Subscription: ""
│ Resource Group Name: "communication-service-frh-dev"
│ Communication Service Name: "example): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidDataLocation: Requested data location unitedstates is not supported. Supported locations: (usgov)

---

If using data_location usgov:

╷
│ Error: expected data_location to be one of ["Africa" "Asia Pacific" "Australia" "Brazil" "Canada" "Europe" "France" "Germany" "India" "Japan" "Korea" "Norway" "Switzerland" "UAE" "UK" "United States"], got usgov
│

Expected Behaviour

usgov should be able to be passed in as the data location

Actual Behaviour

The data locations has a restrictive list of options that don't include non-commercial cloud data locations

Steps to Reproduce

terraform apply

Important Factoids

No response

References

No response

jjm123960 commented 2 hours ago

Dupe of https://github.com/hashicorp/terraform-provider-azurerm/issues/23719