azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az keyvault secret set does not function with values including ')'

Open Pieeer1 opened this issue 3 years ago • 3 comments

az keyvault secret set does not work with values that contain ')',

IE az keyvault secret set --vault-name myvaultname --name mysecretname --value '123)*+0323'

Bug Description '123)*+0323' was unexpected at this time occurs with any value containing characters that are not 'standard'. The secret value can be set in the GUI on the website, but the CLI does not allow the same secret values to be set. To Reproduce This bug is reproduced using the standard az keyvault secret set and happens with ", ', or no quotations at all. Expected behavior It should set the password in the keyvault as expected

Environment summary MSI/2.36.0 * / Windows 10.0.19044 Build 19044 / Powershell 5

Additional context I have had this issue in the past with weird secret values, seems to be there needs to be a string literal specification

Pieeer1 avatar Jun 24 '22 16:06 Pieeer1

keyvault

yonzhan avatar Jun 25 '22 00:06 yonzhan

Hi, @Pieeer1 You can try az keyvault secret set --vault-name myvaultname --name mysecretname --value '123")"*+0323'

jonie001 avatar Jun 27 '22 08:06 jonie001

I have similar issue if value contains "^".

multiarc avatar Feb 26 '24 12:02 multiarc