I'm using Azure's az
CLI to interact with KeyVault and I don't know how to include a space in the value of the secret I'm trying to set. As of azure cli version 2.0.46, proper syntax for setting a secret is:
az keyvault secret set --vault-name NAME --name SECRET_NAME --value VALUE
If VALUE is "my value" (without quotes), I get an error for too many arguments. If I include the quotes on the command line, they show up in the actual value (in this example, the value will be \"my value\"
. I can put my value in a file and use the -f
flag but this can be inconvenient and sometimes impossible depending on the access permissions with the filesystem.
Is there any other solution to this?