Azure / Azure/azure-cli

"az keyvault secret set" have many parsing errors

Open
#17,512 3 comments 0 reactions 2 assignees Claimed by @evelyn-ys View on GitHub
act-identity-squad feature-request KeyVault
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Description
"az keyvault secret set" have many parsing errors, when a value have special characters. For example the command have problem with ")", ">", "&" and ...?

Example Command:
**az keyvault secret set --name test --value ')aaa@aa>:{&aaa'**

## To Reproduce:
Simply try to add a secret with some special character from above.

## Workaround
You can put every special character in quotation marks ("), but no idea how many characters are affected.

Example Workaround:
**az keyvault secret set --name test --value '")"aaa@aa">":{"&"aaa'**

## Environment Summary
```
Windows-10-10.0.18362-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.19.1 *

Extensions:
aks-preview 0.5.6
alertsmanagement 0.1.0

```

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.