You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// max. Lifespan of 4 years (~35000h)
expiration_date = timeadd(timestamp(), "35000h")
key_opts = [
"unwrapKey",
"wrapKey",
]
}
Debug Output
╷
│ Error: ID was missing the vaults element
│
│ with azurerm_key_vault_key.key,
│ on main.tf line 2, in resource "azurerm_key_vault_key" "key":
│ 2: resource "azurerm_key_vault_key" "key" {
│
╵
ERRO[0032] Hit multiple errors:
Hit multiple errors:
exit status 1
Panic Output
Expected Behaviour
Creation of the Key inside the Managed HSM
Actual Behaviour
Key wont be created because of a key vault id check that it contains ".../vaults/.."
Steps to Reproduce
deploy and activate a managed HSM (activation through az command)
try to deploy a key inside the managed HSM
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
This forum is intended to be used for feature enhancements and bugs in the Azure Provider - so that we can keep this forum focused on that we instead ask that broader questions are raised using one of the Community Resources. As such I'm going to close this issue for the moment, but I believe you should be able to get an answer for this using one of the Community Resources.
@tombuildsstuff
Thank you for your answer.
But we were using the hsm_uri field.
The problem is a different one. We are not able to deploy a key with azurerm_key_vault_key inside a managed hsm.
Because of a check that validates the uri. The HSM uri don't contain the "../vaults/.." identifier.
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.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.0
azurerm v2.63.0
Affected Resource(s)
azurerm_key_vault_key
azurerm_key_vault_managed_hardware_security_module
Terraform Configuration Files
resource "azurerm_key_vault_key" "key" {
name = var.key_name
key_vault_id = var.manged_hsm_id
key_type = "RSA"
key_size = 4096
// max. Lifespan of 4 years (~35000h)
expiration_date = timeadd(timestamp(), "35000h")
key_opts = [
"unwrapKey",
"wrapKey",
]
}
Debug Output
╷
│ Error: ID was missing the
vaults
element│
│ with azurerm_key_vault_key.key,
│ on main.tf line 2, in resource "azurerm_key_vault_key" "key":
│ 2: resource "azurerm_key_vault_key" "key" {
│
╵
ERRO[0032] Hit multiple errors:
Hit multiple errors:
exit status 1
Panic Output
Expected Behaviour
Creation of the Key inside the Managed HSM
Actual Behaviour
Key wont be created because of a key vault id check that it contains ".../vaults/.."
Steps to Reproduce
Important Factoids
References
The text was updated successfully, but these errors were encountered: