A simple plugin to make using azure keyvault from the azure cli a little less verbose
Clone this repo into your omz custom directory
git clone https://github.com/milespossing/Azure-Keyvault-Zsh.git $ZSH_CUSTOM/plugins/az-keyvault
Export a variable AZ_KEYVAULT_NAME
which should be the name of the keyvault you are
accessing.
This plugin requires fzf and jq to be installed.
Secrets can be listed with the list-secrets
command.
Secrets can be fetched by passing an array of secret names (optained by list-secrets
) into get-secrets
:
get-secrets sec1 sec2 sec3
Multiple secrets can be selected by using fzf-secrets