我正在尝试使用以下Terraform代码在天蓝色的West India
区域中创建资源组。
resource "azurerm_resource_group" "tf_rg" {
name = "terraform_resource_group"
location = "West India"
}
它发出了一些奇怪的错误,如下所示
Error: "westindia" 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"
我还尝试将区域名称更改为India West
,westindia
和indiawest
。但是没有任何效果,它给出了同样的错误。
我尝试在Centra US
地区创建资源组,令人惊讶的是它正在工作。谁能让我知道可能是什么问题。
答案 0 :(得分:0)
这是azurerm
提供程序版本2.20.0
中的错误。
使用2.19.0
版本时我没有遇到过此类问题
provider "azurerm" {
version = "=2.19.0"
features {}
}