Using az cli
command of az keyvault secret show --name $SecretName --vault-name $KeyVaultName --query value)
returns the secret with double quotes.
This causes my subsequent REST call to fail.
How do I return the secret value only, no double quotes?
I also tried the --outputs tsv
flag, but this returns a bunch of values. Per the docs, the order is not guaranteed.
@Gaurav Mantri thank you for your answer in the comment section converting it to answer
you can try this command to get the secret value without double quotes.
az keyvault secret show --name secretname --vault-name keyvaultname -o tsv