【问题标题】:Azure resource group creation using terraform使用 terraform 创建 Azure 资源组
【发布时间】:2020-11-18 04:20:31
【问题描述】:

我正在尝试使用以下 terraform 代码在 azure 中的 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 区域创建资源组,令人惊讶的是它正在工作。谁能告诉我可能是什么问题。

【问题讨论】:

    标签: azure terraform region


    【解决方案1】:

    这是azurerm提供者版本2.20.0中的一个Bug。

    我使用2.19.0版本时没有遇到过这样的问题

    provider "azurerm" {
      version = "=2.19.0"
      features {}
    }
    

    【讨论】:

      猜你喜欢
      • 2019-05-19
      • 2019-01-26
      • 2020-11-20
      • 2022-07-24
      • 2018-11-24
      • 2021-03-31
      • 2021-01-21
      • 2020-10-31
      • 2020-04-28
      相关资源
      最近更新 更多