Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
weiwuprojects opened this issue Aug 11, 2020 · 2 comments
Closed

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

weiwuprojects opened this issue Aug 11, 2020 · 2 comments

Comments

@weiwuprojects
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform v0.13.0
AzureRM 2.22

Affected Resource(s)

  • azurerm_bot_web_app
  • azurerm_cognitive_account

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. Declare azurerm_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
Copy link
Contributor

Fixed via #8042

@ghost
Copy link

ghost commented Sep 11, 2020

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants