Terraform Cloud 无法在 Azure 中国订阅中部署资源。

huangapple go评论51阅读模式
英文:

Terraform Cloud cannot Deploy Resources in Azure China Subscription

问题

When trying to deploy using Terraform Cloud to Azure China I am getting the following error:

我的代码非常简单,与HSM无关:

provider "azurerm" {
  features {}
  environment = "China"
}

resource "azurerm_resource_group" "tfca_vm" {
  name     = "${var.name_prefix}tfca-vm"
  location = var.azure_location
}

I tried disabling the environment for the provider and ensuring all necessary resource providers were registered. Unfortunately, that did not help.

英文:

When trying to deploy using Terraform Cloud to Azure China I am getting the following error:
Terraform Cloud 无法在 Azure 中国订阅中部署资源。

My code is very simple and has nothing to do with HSM:

provider "azurerm" {
  features {}
  environment = "China"
}

resource "azurerm_resource_group" "tfca_vm" {
  name     = "${var.name_prefix}tfca-vm"
  location = var.azure_location
}

I tried disabling the environment for the provider and ensuring all necessary resource providers were registered. Unfortunately, that did not help.

答案1

得分: 1

是的,降级到3.62版本适用于中国 Azure。

> 引用

    azurerm = {
      source  = "hashicorp/azurerm"
      version = "= 3.62.0"
    }
英文:

Yes, downgrading to 3.62 worked with China Azue.

`
> Blockquote

azurerm = {
  source  = "hashicorp/azurerm"
  version = "= 3.62.0"
}

答案2

得分: 0

在AzureRM提供程序版本3.63中发现了一个错误。

英文:

It turns out it was a bug in AzureRM provider 3.63.

huangapple
  • 本文由 发表于 2023年7月4日 21:00:18
  • 转载请务必保留本文链接:https://go.coder-hub.com/76612919.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定