Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build authorizer for Managed HSM API when deploying to Azure China #22374

Closed
1 task done
nickda opened this issue Jul 5, 2023 · 2 comments · Fixed by #22400
Closed
1 task done

Unable to build authorizer for Managed HSM API when deploying to Azure China #22374

nickda opened this issue Jul 5, 2023 · 2 comments · Fixed by #22400

Comments

@nickda
Copy link

nickda commented Jul 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.5.2

AzureRM Provider Version

3.63

Affected Resource(s)/Data Source(s)

All Resources / Data Sources

Terraform Configuration Files

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

resource "azurerm_resource_group" "test" {
  name     = "test"
  location = "China North 3"
}

Debug Output/Panic Output

╷
│ Error: unable to build authorizer for Managed HSM API: could not configure ClientSecret Authorizer: determining scope for "ManagedHSM": the endpoint "ManagedHSM" is not supported in this Azure Environment
│ 
│   with provider["registry.terraform.io/hashicorp/azurerm"],
│   on providers.tf line 7, in provider "azurerm":
│    7: provider "azurerm" {
│ 
╵
Operation failed: failed running terraform plan (exit 1)�

Expected Behaviour

Successful initialization of provider.

Actual Behaviour

Failure to plan with the 3.63 version when deploying to Azure China.

Steps to Reproduce

terraform plan

Important Factoids

Running in Azure China

References

No response

@ranjan-tim
Copy link

This worked till 3.62 azurerm version. i think this change broke this in 3.63 -
: https://github.com/hashicorp/terraform-provider-azurerm/pull/22162/commits
it's a change not tested in other Azure Provider (meaning AzureChina or AzureGov). KV hsm is not available in China

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants