Azure Key Vault Secrets Client Library Python Samples
Prerequisites
You must have an Azure subscription and an Azure Key Vault to run these samples. You can create a key vault with the Azure CLI.
Setup
To run these samples, first install the Key Vault Secrets and Azure Identity libraries:
pip install azure-keyvault-secrets azure-identity
Azure Identity is used for authenticating Key Vault clients. These samples use the DefaultAzureCredential, but any credential from the library can be used with Key Vault clients.
Contents
File | Description |
---|---|
hello_world.py (async version) | create/get/update/delete secrets |
list_operations.py (async version) | basic list operations for secrets |
backup_restore_operations.py (async version) | back up and restore secrets |
recover_purge_operations.py (async version) | recover and purge secrets |