-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
API management CA certificate out of sync #6985
Comments
Hi @Laudenlaruto , thanks for opening this issue. There is a related PR #6850 merged and released in azurerm 2.10.0. If you update the azurerm to 2.10.0, you'll get the error message bellow: It suggests that |
Hi, CA certificates can be public certificates (.cer) and do not require a password. I don't know why terraform requires it. |
Hi @Laudenlaruto, as @yupwei68 has mentioned that v2.10.0 provider has fixed this issue, hope you don't mind that I close this issue for now. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
I am trying to manage certificate with terraform for api management, unfortunately terraform is unable to import one, or realize that a certificate is missing.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.24
Affected Resource(s)
azurerm_api_management
Terraform Configuration Files
data "azurerm_key_vault_secret" "certificate" { name = azurerm_key_vault_certificate.certificate.name key_vault_id = var.vault_id }
`resource "azurerm_api_management" "apim-back" {
name = "example"
location = location
resource_group_name = rg
publisher_name = "exmaple"
publisher_email = "[email protected]"
sku_name = Developer_1
virtual_network_type = "Internal"
virtual_network_configuration {
subnet_id = data.terraform_remote_state.network.outputs.subnet_id
}
certificate {
encoded_certificate = data.azurerm_key_vault_secret.certificate.value
certificate_password = ""
store_name = "Root"
}
}`
Debug Output
Error: creating/updating API Management Service "EXAMPLE" (Resource Group "RG"): apimanagement.ServiceClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="NotSupported" Message="Certificate management for the default domain 'examplet.azure-api.net' is not allowed."
Terraform state is then updated with believing it was added, and when I re apply it doesn't add it.
Expected Behavior
Terraform should have added my certificate to API management CA certificate
Actual Behavior
It crashes
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: