Azure / Azure/azure-cli

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

Open
#23,018 3 comments 1 reaction 1 assignee Claimed by @evelyn-ys View on GitHub
act-identity-squad Auto-Assign customer-reported KeyVault
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.