Azure / azure-cli

Azure Command-Line Interface
MIT License
3.94k stars 2.92k forks source link

fetch multiple keyvault secrets via az keyvault secret show #26321

Open davildaran opened 1 year ago

davildaran commented 1 year ago

Related command

az keyvault secret show

Is your feature request related to a problem? Please describe. Not a problem necessarily, just a nice-to-have rather than multiple calls to specify one az cli call when we know the set of secrets in a key vault that a service requires.

Describe the solution you'd like

An optional parameter --names or --list to select multiple key vault secrets in one call.

E.g. az keyvault secret show --list SECRET-1,SECRET-2,SECRET-3 --vault-name <vaultName> --query "value"

Describe alternatives you've considered

Multiple calls to az keyvault secret show --name ...; one secret fetched per call.

Additional context azure-cli version 2.48.1

yonzhan commented 1 year ago

Thank you for opening this issue, we will look into it.