Create a Key Vault
az keyvault create --name <unique-keyvault-name> \
--resource-group <group name> \
--location <region>
List Key Vaults
az keyvault list
Add a Secret
az keyvault secret set --vault-name <vault-name> \ --name <key-name> \ --value "<key-value>"
List Secrets in a Vault
az keyvault secret list --vault-name <vault name>
Show a Key from the Vault
# Show in console - OK for short keys
az keyvault secret show --vault-name <vault-name> --name <key-name>
# Save in a file - Good for large keys
az keyvault secret download --vault-name <vault-name> --name <key-name> --file <output-file-name>
Delete a Key from the Vault
# delete, but recoverable
az keyvault secret delete --vault-name <vault-name> --name <key-name>
# delete, not recoverable
az keyvault secret purge --vault-name <vault-name> --name <key-name>