Azure-cli: [Keyvault] az keyvault secret show --query value does not return anything on Mac

Created on 20 Jul 2018  路  4Comments  路  Source: Azure/azure-cli

Describe the bug
Running az keyvault secret show -n <name> --vault-name <valuename> --query value returns nothing on mac.
_This works on windows._

To Reproduce
Run az keyvault secret show -n <name> --vault-name <valuename> --query value

Expected behavior
A clear and concise description of what you expected to happen.

Environment summary
Installed via Homebrew

Package Version:
azure-cli (2.0.42)
keyvault (2.2.0)

OS:
OSX 10.13.4

Terminal:
iTerm and default terminal

Additional context
image

KeyVault Service Attention question

Most helpful comment

Turns out I needed to add -o tsv and it got me what I needed 馃憤

All 4 comments

If you omit --query does it work?

tried omitting --query. no results.

thanks for responding

Hello
It does work for me on mac
Running mojave and zsh shell (not bash)
az cli version 2.0.38

screen shot 2018-10-08 at 14 49 03

I do have a different question though... how can I get just the value data, without the "Result" prefix?

Thank you
Omer

Turns out I needed to add -o tsv and it got me what I needed 馃憤

Was this page helpful?
0 / 5 - 0 ratings