skillfed

azure-keyvault-securitydomain

Microsoft Corporation Azure Keyvault Securitydomain Client Library for Python

azure-keyvault-securitydomain v1.0.0b1 4.7M downloads/30d#2,252 on PyPI5,588
Permissive license MIT License Active released

What it is and what it does

This library provides a Python client for managing security domains in Azure Key Vault Managed HSM. A security domain is an encrypted blob containing HSM backup artifacts, user credentials, signing keys, and encryption keys unique to each managed HSM. The SecurityDomainClient lets you download a security domain from one HSM (to activate it or prepare for disaster recovery), get transfer keys for encrypting domains before upload, and upload a security domain to restore or migrate an HSM.

The package is part of the Azure SDK for Python and integrates with azure-core for HTTP transport and typing-extensions for type support. It supports both synchronous and asynchronous clients, and is actively maintained. The library is currently in Beta, so its API may evolve; it requires Python 3.9 or later and an existing Managed HSM instance in Azure.

Use it for:

  • Activate a provisioned Managed HSM by downloading its security domain after initial setup.
  • Prepare a managed HSM for disaster recovery by downloading and securely storing its security domain.
  • Restore a managed HSM from a previously downloaded security domain after a failure or migration.
  • Migrate security domains between managed HSMs in different Azure regions or subscriptions.
  • Obtain transfer keys to encrypt security domains before uploading them to a different HSM.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Manages security domains for Azure Key Vault Managed HSM—download, upload, and transfer security domain artifacts for HSM activation and disaster recovery.

Yes, if you operate Azure Key Vault Managed HSM and need to manage security domains programmatically. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive license. The Beta status means the API may change, so pin the version in production. If you only use standard Key Vault (not Managed HSM), this library is not relevant.

Install

azure-keyvault-securitydomain on PyPI

pip

pip install azure-keyvault-securitydomain

uv

uv add azure-keyvault-securitydomain

poetry

poetry add azure-keyvault-securitydomain

Installing azure-keyvault-securitydomain

Before you install

Low install friction with three lightweight runtime dependencies (isodate, azure-core, typing-extensions). Active maintenance with recent commits; marked as Beta (Development Status 4) so expect API evolution.

License in practice

MIT License permits commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install azure-keyvault-securitydomain

from azure.keyvault.securitydomain import SecurityDomainClient

client = SecurityDomainClient(vault_url=VAULT_URL, credential=credential)
security_domain = client.begin_download(certificate_info=certs).result()

Requires Python 3.9 or later; requires an existing Azure Key Vault Managed HSM and valid credentials configured externally.

Verify before relying

  • Whether async support (aio module) is fully documented and tested in production scenarios.
  • Performance characteristics and latency for large security domain transfers.
  • Specific error handling and retry behavior for network failures during long-running operations.

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 — 463 days since the last release
Last repo commit
First released
Downloads 4,692,628/month — #2,252 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: azure_keyvault_securitydomain-1.0.0b1-py3-none-any.whl

Keywords: azure, azure sdk

Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

azure key vault managed hsmsecurity domain managementhsm backup restoreazure disaster recoverymanaged hsm activationsecurity domain download uploadazure key vault sdk
azure-sdkhsm-managementdisaster-recovery

More Cryptography packages

certifi

Certifi provides Mozilla's curated collection…

copyleft · top 100 on PyPI

cryptography

cryptography provides cryptographic recipes and…

permissive · top 100 on PyPI

rsa

Pure-Python RSA encryption, decryption,…

permissive · top 1,000 on PyPI

pyOpenSSL

pyOpenSSL wraps OpenSSL's SSL/TLS functionality…

permissive · top 1,000 on PyPI

azure-identity

Provides Microsoft Entra ID token-based…

unclear · top 1,000 on PyPI

PyNaCl

PyNaCl provides Python bindings to libsodium…

permissive · top 1,000 on PyPI

azure-keyvault-administration

Manages role-based access control, backup,…

permissive · top 5,000 on PyPI

azure-keyvault-secrets

Securely store, retrieve, and manage secrets…

permissive · top 1,000 on PyPI

azure-keyvault-certificates

Manages SSL/TLS certificates stored in Azure…

permissive · top 5,000 on PyPI

azure-mgmt-keyvault

Manages Azure Key Vault resources—vaults, keys,…

unclear · top 5,000 on PyPI

azure-keyvault-keys

Manages cryptographic keys in Azure Key…

unclear · top 1,000 on PyPI

azure-keyvault

A bundle package that installs three Azure Key…

permissive · top 5,000 on PyPI

skyflow

A Python SDK for securely integrating with…

unclear · top 15,000 on PyPI

azure-mgmt-recoveryservices

Provides Python bindings to manage Azure…

permissive · top 5,000 on PyPI

azure-mgmt-domainregistration

Manages Azure domain registrations…

permissive · top 5,000 on PyPI

azure-appconfiguration-provider

Loads application configurations from Azure App…

permissive · top 5,000 on PyPI