Azure Key Vault Administration Client Library Python Samples
Prerequisites
You must have an Azure subscription and an Azure Managed HSM to run these samples. You can create a managed HSM with the Azure CLI.
Setup
To run these samples, first install the Key Vault Administration and Azure Identity libraries:
pip install azure-keyvault-administration 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 |
|---|---|
| access_control_operations.py | create/update/delete role definitions and role assignments |
| access_control_operations_async.py | create/update/delete role definitions and role assignments with an async client |
| backup_restore_operations.py | full backup and restore |
| backup_restore_operations_async.py | full backup and restore with an async client |
| settings_operations.py | list and update Key Vault settings |
| settings_operations_async.py | list and update Key Vault settings with an async client |