使用Terraform创建Azure资源组

时间:2020-07-28 16:45:59

标签: azure terraform region

我正在尝试使用以下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 Westwestindiaindiawest。但是没有任何效果,它给出了同样的错误。

我尝试在Centra US地区创建资源组,令人惊讶的是它正在工作。谁能让我知道可能是什么问题。

1 个答案:

答案 0 :(得分:0)

这是azurerm提供程序版本2.20.0中的错误。

使用2.19.0版本时我没有遇到过此类问题

provider "azurerm" {
  version = "=2.19.0"
  features {}
}
相关问题