Issue:
When retrieving a key-value with certain special characters using the CLI, the returned value looks ok until the value is held as a variable or ConvertFrom-Json is used, at which point, certain characters change. £ becomes ú and € becomes Ç, possibly indicating an encoding issue.
Steps to reproduce
- Add a new key-value into AAC with a £ or € in either the name or the value (doesn't matter which, the issue occurs either way)
- Use the CLI to return the key-value:
az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*' - powershell output looks correct
- Use the CLI again, but this time, save the output to a variable:
$x = az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*'
- Now output $x and you get different values
- The same happens if you use ConvertFrom-Json:
az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*' | ConvertFrom-Json
Issue:
When retrieving a key-value with certain special characters using the CLI, the returned value looks ok until the value is held as a variable or ConvertFrom-Json is used, at which point, certain characters change. £ becomes ú and € becomes Ç, possibly indicating an encoding issue.
Steps to reproduce
az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*'- powershell output looks correct$x = az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*'az appconfig kv list --name 'appconfigname' --key 'Test:Settings:*' | ConvertFrom-Json