-
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
Thumbprint is not provided as an attribute for azurerm_key_vault_certificate #1851
Comments
hey @oliver-hermann Thanks for opening this issue :) We don't support this property on the Thanks! |
Hey @tombuildsstuff, The Thanks for the quick response, also thanks for the nice |
I've had a hacky data external resource using the Azure CLI doing this for me for a while now Not checked the SDK, but the Azure CLI json response brings the following back:-
don't worry these were temporary details, but as you can see x509Thumbprint and x509ThumbprintHex are both returned. x509ThumbprintHex is the value required in the azurerm_service_fabric_cluster resource I've not picked up GoLang before, but looking at the SDK it only returns the Base64 encoded value I'm going to try and play around with the Azure Go SDK to see what is what |
so I have tried the following, but not getting what I expect back:-
@tombuildsstuff any ideas? |
@tombuildsstuff OK got it, like I said fresh and new to Go:-
I'll raise a PR shortly |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
This issue was originally opened by @oliver-hermann as hashicorp/terraform#18768. It was migrated here as a result of the provider split. The original body of the issue is below.
Hello,
I'm currently setting up a terraform script which involves creating a Service Fabric Cluster via AzureRM (
azurerm_service_fabric_cluster
). I also need two certificates for the cluster, but creating a certificate through Terraforms AzureRM interface (azurerm_key_vault_certificate
) doesn't yield a thumbprint of the certificate, which is necessary for the Service Fabric Cluster.So now I'm wondering, is this a missing feature of
azurerm_key_vault_certificate
? Or am I overlooking something?I am aware of the possibility to get the thumbprint outside of the script, via Powershell for example. I'm looking for a way to have the whole deployment contained within my Terraform script though.
Is there any other way to achieve this?
Thank you very much in advance!
Regards, Oliver
The text was updated successfully, but these errors were encountered: