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.51k stars 4.6k forks source link

"global" was not found in the list of supported Azure Locations #8088

Closed weiwuprojects closed 4 years ago

weiwuprojects commented 4 years ago

Community Note

Terraform (and AzureRM Provider) Version

Terraform v0.13.0 AzureRM 2.22

Affected Resource(s)

Possibly any other resources that must be created in the "global" region

Terraform Configuration Files

resource "azurerm_cognitive_account" "bing_spell_check" {
  name                = "BSC-example"
  location            = "global"
  resource_group_name = data.azurerm_resource_group.env.name
  kind                = "Bing.SpellCheck.v7"

  sku_name = "F0"
}

resource "azurerm_bot_web_app" "bot" {
  name                                  = "BOT-example"
  location                              = "global"
  resource_group_name                   = data.azurerm_resource_group.env.name
  sku                                   = "F0"
  microsoft_app_id                      = data.azurerm_key_vault_secret.bot_ad_app_id.value
  endpoint                              = "https://${azurerm_app_service.bot_service.default_site_hostname}/api/messages"
  developer_app_insights_key            = azurerm_application_insights.bot_app_insights.instrumentation_key
  developer_app_insights_api_key        = azurerm_application_insights_api_key.bot_framework.api_key
  developer_app_insights_application_id = azurerm_application_insights.bot_app_insights.app_id
  luis_app_ids                          = [data.azurerm_key_vault_secret.luis_app_id.value]
  luis_key                              = data.azurerm_key_vault_secret.luis_key.value
}

Debug Output

Panic Output

N/A

Expected Behavior

Resource is created in the "global" region

Actual Behavior

I receive the below error.

Error: "global" was not found in the list of supported Azure Locations: "westus,westus2,eastus,centralus,centraluseuap,southcentralus,northcentralus,westcentralus,eastus2,eastus2euap,brazilsouth,brazilus,northeurope,westeurope,eastasia,southeastasia,japanwest,japaneast,koreacentral,koreasouth,indiasouth,indiawest,indiacentral,australiaeast,australiasoutheast,canadacentral,canadaeast,uksouth,ukwest,francecentral,francesouth,australiacentral,australiacentral2,uaecentral,uaenorth,southafricanorth,southafricawest,switzerlandnorth,switzerlandwest,germanynorth,germanywestcentral,norwayeast,norwaywest,brazilsoutheast"

  on bot.tf line 1, in resource "azurerm_bot_web_app" "bot":
   1: resource "azurerm_bot_web_app" "bot" {

Error: "global" was not found in the list of supported Azure Locations: "westus,westus2,eastus,centralus,centraluseuap,southcentralus,northcentralus,westcentralus,eastus2,eastus2euap,brazilsouth,brazilus,northeurope,westeurope,eastasia,southeastasia,japanwest,japaneast,koreacentral,koreasouth,indiasouth,indiawest,indiacentral,australiaeast,australiasoutheast,canadacentral,canadaeast,uksouth,ukwest,francecentral,francesouth,australiacentral,australiacentral2,uaecentral,uaenorth,southafricanorth,southafricawest,switzerlandnorth,switzerlandwest,germanynorth,germanywestcentral,norwayeast,norwaywest,brazilsoutheast"

  on cognitive.tf line 1, in resource "azurerm_cognitive_account" "bing_spell_check":
   1: resource "azurerm_cognitive_account" "bing_spell_check" {

Steps to Reproduce

  1. Declareazurerm_cognitive_account and azurerm_bot_web_app in the global region
  2. terraform plan

Important Factoids

This does not happen in AzureRM 2.19 and started happening with 2.20.

References

tombuildsstuff commented 4 years ago

Fixed via #8042

ghost commented 3 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!