This release is a pre-release and may not be stable for production use.
Microsoft Azure SDK for Python
This is the Microsoft Azure Hardwaresecuritymodules Management Client Library. This package has been tested with Python 3.10+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.10+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-hardwaresecuritymodules
pip install azure-identity
Authentication
By default, Microsoft Entra token authentication depends on correct configuration of the following environment variables.
AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.
In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.hardwaresecuritymodules import HardwareSecurityModulesMgmtClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = HardwareSecurityModulesMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at:
- Search Hardwaresecuritymodules Management on docs.microsoft.com
- Azure Python Mgmt SDK Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
2.0.0b1 (2026-08-05)
Features Added
- Client
HardwareSecurityModulesMgmtClientadded parametercloud_settingin method__init__ - Client
HardwareSecurityModulesMgmtClientadded operation grouppayment_hsm_cluster_private_endpoint_connections - Client
HardwareSecurityModulesMgmtClientadded operation grouppayment_hsm_cluster_private_link_resources - Client
HardwareSecurityModulesMgmtClientadded operation grouppayment_hsm_clusters - Enum
CloudHsmClusterSkuNameadded memberSTANDARD_B10_V2 - Enum
CloudHsmClusterSkuNameadded memberSTANDARD_B15_V2 - Enum
CloudHsmClusterSkuNameadded memberSTANDARD_B1_V2 - Enum
CloudHsmClusterSkuNameadded memberSTANDARD_B20_V2 - Enum
CloudHsmClusterSkuNameadded memberSTANDARD_B5_V2 - Added enum
HsmState - Added model
PaymentHsmCluster - Added model
PaymentHsmClusterPatchParameters - Added model
PaymentHsmClusterPrivateEndpointConnection - Added model
PaymentHsmClusterProperties - Added model
PaymentHsmClusterSku - Added enum
PaymentHsmClusterSkuFamily - Added enum
PaymentHsmClusterSkuName - Added model
PaymentHsmProperties - Added operation group
PaymentHsmClusterPrivateEndpointConnectionsOperations - Added operation group
PaymentHsmClusterPrivateLinkResourcesOperations - Added operation group
PaymentHsmClustersOperations
Breaking Changes
- Deleted or renamed method
CloudHsmClusterBackupStatusOperations.begin_get - Deleted or renamed method
CloudHsmClusterRestoreStatusOperations.begin_get
1.0.0 (2025-07-02)
Features Added
- Enum
ProvisioningStateadded memberUPDATING - Model
CloudHsmClusterBackupStatusOperationsadded methodbegin_get - Model
CloudHsmClusterRestoreStatusOperationsadded methodbegin_get
Breaking Changes
- This version introduces new hybrid models which have dual dictionary and model nature. And please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
- Deleted or renamed model
CloudHsmClusterResource - Deleted or renamed model
IdentityType - Deleted or renamed model
OutboundEnvironmentEndpointCollection - Deleted or renamed method
CloudHsmClusterBackupStatusOperations.get - Deleted or renamed method
CloudHsmClusterRestoreStatusOperations.get - Method
CloudHsmClustersOperations.begin_create_or_updateinserted apositional_or_keywordparameterbody - Method
CloudHsmClustersOperations.begin_create_or_updatedeleted or renamed its parameterlocationof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_create_or_updatedeleted or renamed its parametertagsof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_create_or_updatedeleted or renamed its parameteridentityof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_create_or_updatedeleted or renamed its parameterskuof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_create_or_updatedeleted or renamed its parameterpropertiesof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_updateinserted apositional_or_keywordparameterbody - Method
CloudHsmClustersOperations.begin_updatedeleted or renamed its parametertagsof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_updatedeleted or renamed its parameteridentityof kindpositional_or_keyword - Method
CloudHsmClustersOperations.list_by_resource_groupchanged its parameterskiptokenfrompositional_or_keywordtokeyword_only - Method
CloudHsmClustersOperations.list_by_subscriptionchanged its parameterskiptokenfrompositional_or_keywordtokeyword_only - Method
DedicatedHsmOperations.begin_updateinserted apositional_or_keywordparameterparameters - Method
DedicatedHsmOperations.begin_updatedeleted or renamed its parametertagsof kindpositional_or_keyword
1.0.0b2 (2025-02-06)
Features Added
- Client
HardwareSecurityModulesMgmtClientadded operation groupcloud_hsm_cluster_backup_status - Client
HardwareSecurityModulesMgmtClientadded operation groupcloud_hsm_cluster_restore_status - Model
ApiEntityReferenceadded propertyresource_id - Model
CloudHsmClusterPropertiesadded propertyactivation_state - Model
NetworkInterfaceadded propertyresource_id - Model
PrivateLinkResourceListResultadded propertynext_link - Added enum
ActionType - Added enum
ActivationState - Added enum
AutoGeneratedDomainNameLabelScope - Added model
BackupRequestProperties - Added model
BackupRestoreBaseResultProperties - Added enum
BackupRestoreOperationStatus - Added model
BackupRestoreRequestBaseProperties - Added model
BackupResult - Added model
BackupResultProperties - Added model
ErrorAdditionalInfo - Added model
ErrorDetail - Added model
ErrorResponse - Added model
Operation - Added model
OperationDisplay - Added model
OperationListResult - Added enum
Origin - Added enum
PublicNetworkAccess - Added model
RestoreRequestProperties - Added model
RestoreResult - Operation group
CloudHsmClustersOperationsadded methodbegin_backup - Operation group
CloudHsmClustersOperationsadded methodbegin_restore - Operation group
CloudHsmClustersOperationsadded methodbegin_validate_backup_properties - Operation group
CloudHsmClustersOperationsadded methodbegin_validate_restore_properties - Added operation group
CloudHsmClusterBackupStatusOperations - Added operation group
CloudHsmClusterRestoreStatusOperations
Breaking Changes
- Model
ApiEntityReferencedeleted or renamed its instance variableid - Model
CloudHsmClusterPatchParametersdeleted or renamed its instance variablesku - Model
CloudHsmClusterPatchParametersdeleted or renamed its instance variableproperties - Model
CloudHsmClusterPropertiesdeleted or renamed its instance variablesecurity_domain - Model
CloudHsmClusterPropertiesdeleted or renamed its instance variablerestore_properties - Model
CloudHsmClusterPropertiesdeleted or renamed its instance variablebackup_properties - Model
NetworkInterfacedeleted or renamed its instance variableid - Parameter
skuof modelDedicatedHsmis now required - Deleted or renamed model
BackupProperties - Deleted or renamed model
CHsmError - Deleted or renamed model
CloudHsmClusterError - Deleted or renamed model
CloudHsmClusterPatchParametersProperties - Deleted or renamed model
CloudHsmClusterSecurityDomainProperties - Deleted or renamed model
DedicatedHsmOperation - Deleted or renamed model
DedicatedHsmOperationDisplay - Deleted or renamed model
DedicatedHsmResource - Deleted or renamed model
RestoreProperties - Deleted or renamed model
SystemDataAutoGenerated - Method
CloudHsmClustersOperations.begin_updatedeleted or renamed its parameterskuof kindpositional_or_keyword - Method
CloudHsmClustersOperations.begin_updatedeleted or renamed its parameterpropertiesof kindpositional_or_keyword
1.0.0b1 (2024-01-26)
- Initial Release
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_mgmt_hardwaresecuritymodules-2.0.0b1.tar.gz.
File metadata
- Download URL: azure_mgmt_hardwaresecuritymodules-2.0.0b1.tar.gz
- Upload date:
- Size: 101.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
423d00d01c643f9204048af0324dca1ead3fe137ee954094f2ca3b7c8b1739a1
|
|
| MD5 |
12628458cd9589a777e413d2e0d43720
|
|
| BLAKE2b-256 |
ffe42f81c84f3a8f16d1b1c5f343b36a79ce18622e8c03532f175b04cb1c97c6
|
File details
Details for the file azure_mgmt_hardwaresecuritymodules-2.0.0b1-py3-none-any.whl.
File metadata
- Download URL: azure_mgmt_hardwaresecuritymodules-2.0.0b1-py3-none-any.whl
- Upload date:
- Size: 103.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ed923b9e14743cb55ebea0c3867e4e642c9294f0c2d3b83fbf11bd45ad02015
|
|
| MD5 |
d401ed79fb41efedab50180fbeaac9f5
|
|
| BLAKE2b-256 |
155c5beccbd27dfc17103c72300ba8b071de85b8217bc57409dc98120174391b
|