azure-keyvault-administration
Microsoft Corporation Key Vault Administration Client Library for Python
What it is and what it does
This is the official Azure SDK client library for administering Key Vault Managed HSM instances. It provides three main client classes: KeyVaultAccessControlClient for managing role definitions and assignments, KeyVaultBackupClient for performing full and selective key backups and restores, and KeyVaultSettingsClient for configuring Managed HSM account settings. The library handles long-running operations like pre-backup checks and restore operations through polling abstractions.
The package is tightly integrated with azure-core for HTTP transport and credential handling. It is explicitly designed for Managed HSM only—operations against standard Key Vault instances will fail. The library supports Python 3.9 through 3.13 and is maintained as part of the official Azure SDK for Python.
Use it for:
- Implement role-based access control (RBAC) for Managed HSM by creating and managing role assignments programmatically.
- Automate full or selective key backups and restores for disaster recovery and key rotation workflows.
- Configure Managed HSM account settings such as security policies or operational parameters via the settings client.
- Build administrative dashboards or CLI tools that list and manage role definitions across multiple Managed HSM instances.
- Integrate Managed HSM administration into Infrastructure-as-Code or DevOps pipelines for key vault lifecycle management.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Manages role-based access control, backup, restore, and settings for Azure Key Vault Managed HSM instances.
Yes. This is the official, actively maintained Azure SDK library for Managed HSM administration. It has low install friction, permissive MIT licensing, no known vulnerabilities, and is in production-stable status. Install it if you need to programmatically manage access control, backups, or settings on an Azure Key Vault Managed HSM; do not use it for standard Key Vault operations.
Install
azure-keyvault-administration on PyPI
pip
pip install azure-keyvault-administrationuv
uv add azure-keyvault-administrationpoetry
poetry add azure-keyvault-administrationInstalling azure-keyvault-administration
Before you install
Low install friction with three lightweight runtime dependencies (isodate, azure-core, typing-extensions). Active maintenance with a release 87 days ago and ongoing repository activity.
License in practice
MIT License permits commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install azure-keyvault-administration
from azure.keyvault.administration import KeyVaultAccessControlClient
from azure.core import credential
client = KeyVaultAccessControlClient(vault_url=MANAGED_HSM_URL, credential=credential)
Requires Python 3.9 or later and an existing Azure Key Vault Managed HSM instance (does not work with standard Key Vault).
Verify before relying
- Whether async variants (azure.keyvault.administration.aio) are production-ready or have known limitations.
- Performance characteristics for large-scale backup/restore operations on Managed HSM.
- Support status for authentication methods beyond those documented in the package description.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-core, typing-extensions |
| Maintenance | actively maintained — 87 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,241,871/month — #2,131 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_keyvault_administration-4.7.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
azure-keyvault-securitydomainManages security domains for Azure Key Vault…
permissive · top 5,000 on PyPI
azure-keyvault-certificatesManages SSL/TLS certificates stored in Azure…
permissive · top 5,000 on PyPI
azure-keyvault-keysManages cryptographic keys in Azure Key…
unclear · top 1,000 on PyPI
azure-keyvault-secretsSecurely store, retrieve, and manage secrets…
permissive · top 1,000 on PyPI
azure-keyvaultA bundle package that installs three Azure Key…
permissive · top 5,000 on PyPI
azure-mgmt-keyvaultManages Azure Key Vault resources—vaults, keys,…
unclear · top 5,000 on PyPI
pydantic-settings-azure-app-configurationLoads application configuration and secrets…
unclear · top 15,000 on PyPI
consulateConsulate is a Python client library for…
permissive · top 15,000 on PyPI
azure-appconfiguration-providerLoads application configurations from Azure App…
permissive · top 5,000 on PyPI
azure-mgmt-managedservicesProvides Python client library for managing…
unclear · top 15,000 on PyPI