I am working currently for the china region portal. I am trying to automate the infra using Terraform. How to configure or connect the china region using Terraform providers.
I am going through harshicop document and found the below block.
environment - (Optional) The Cloud Environment which should be used. Possible values are public, usgovernment, german, and china. Defaults to public. This can also be sourced from the ARM_ENVIRONMENT Environment Variable.
but when I am passing it in the provider section. it gives the below error.
I got the solution.
provider "azurerm" {
skip_provider_registration = true
environment = "China" // Just added the environment and its working fine.
features {
}
}