-
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
disk_encryption_set doesn't support referencing a key in a managed HSM key vault in the key_vault_key_id #21470
Comments
@wuxu92 it is similar but not a dupe. That bug is related to validating the ID of the Azure resource, this one is the base URL of the vault itself. Same logic but different codepath. There might be a bigger effort on top of #20855 to determine what resources are compatible with both key vault and mhsm vaults and ensure that the validation and parsing logic supports both. |
Exact same issue as you we had disable disk encryption in code to get a deployment |
@musteepha Just an FYI I have a workaround in place using the azapi resource to create the disk encryption set:
|
With the merge of #25601, can support for HSM keys be built into the resource? |
@Flasheh yes the provider now supports creating HSM keys and with the merge of the parser/validation functions a PR can now be opened for disk encryption set to support them following the pattern in the storagte account resource with an added mhsm key property |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.4.5
AzureRM Provider Version
3.52.0
Affected Resource(s)/Data Source(s)
azurerm_disk_encryption_set
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The provider should allow for keys in managed HSMs to be used for disk encryption sets. Tested with the az cli and creating new des with managed HSM key URIs is supported.
Actual Behaviour
Resource failed provider validation due to the logic in the base URL parsing:
terraform-provider-azurerm/internal/services/keyvault/client/helpers.go
Line 182 in 9a82993
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: