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

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

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无关:

  1. provider "azurerm" {
  2. features {}
  3. environment = "China"
  4. }
  5. resource "azurerm_resource_group" "tfca_vm" {
  6. name = "${var.name_prefix}tfca-vm"
  7. location = var.azure_location
  8. }

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:

  1. provider "azurerm" {
  2. features {}
  3. environment = "China"
  4. }
  5. resource "azurerm_resource_group" "tfca_vm" {
  6. name = "${var.name_prefix}tfca-vm"
  7. location = var.azure_location
  8. }

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。

  1. > 引用
  2. azurerm = {
  3. source = "hashicorp/azurerm"
  4. version = "= 3.62.0"
  5. }
英文:

Yes, downgrading to 3.62 worked with China Azue.

`
> Blockquote

  1. azurerm = {
  2. source = "hashicorp/azurerm"
  3. version = "= 3.62.0"
  4. }

答案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:

确定