This message was deleted.
# azure
s
This message was deleted.
c
I can get it by running
az keyvault certificate show --vault <vault> -n <certName> --query "x509ThumbprintHex" -o tsv
what would be the easiest way to do the same in Pulumi?
Oo, just found
Pulumi.Command
had a stdout. Resolves my issue.
Copy code
var getThumb = new Command("getThumb", new CommandArgs
{
    Create = "az keyvault certificate show --vault $VAULT -n $NAME --query \"x509ThumbprintHex\" -o tsv",
    Environment =
    {
        { "NAME", certName },
        { "VAULT", vault.Name },
    },
});
m
Retrieving the values of secrets, including certs, is not available through Pulumi since this is a data-plane operation. See this (pretty hidden) note on https://www.pulumi.com/registry/packages/azure-native/api-docs/keyvault/getsecret/#secretpropertiesresponse:
Users should use the data-plane REST service for interaction with vault secrets.
Glad you found another way. Using the Azure SDK would be another one.
👍 2
c
Makes sense. And thanks for the tip on Azure SDK — I guess that makes a lot more sense that parsing stdout 😄