skip to Main Content

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

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.

2

Answers


  1. Chosen as BEST ANSWER

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


  2. Yes, downgrading to 3.62 worked with China Azue.

    `

    Blockquote

    azurerm = {
      source  = "hashicorp/azurerm"
      version = "= 3.62.0"
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search