Skip to main content

Microsoft Azure SDK for Python

This is the Microsoft Azure Hardwaresecuritymodules Management Client Library. This package has been tested with Python 3.9+. 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

Install the package

pip install azure-mgmt-hardwaresecuritymodules
pip install azure-identity

Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.

  • AZURE_CLIENT_ID for Azure client ID.
  • AZURE_TENANT_ID for Azure tenant ID.
  • AZURE_CLIENT_SECRET for 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:

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

1.0.0 (2025-07-02)

Features Added

  • Enum ProvisioningState added member UPDATING
  • Model CloudHsmClusterBackupStatusOperations added method begin_get
  • Model CloudHsmClusterRestoreStatusOperations added method begin_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_update inserted a positional_or_keyword parameter body
  • Method CloudHsmClustersOperations.begin_create_or_update deleted or renamed its parameter location of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_create_or_update deleted or renamed its parameter tags of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_create_or_update deleted or renamed its parameter identity of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_create_or_update deleted or renamed its parameter sku of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_create_or_update deleted or renamed its parameter properties of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_update inserted a positional_or_keyword parameter body
  • Method CloudHsmClustersOperations.begin_update deleted or renamed its parameter tags of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_update deleted or renamed its parameter identity of kind positional_or_keyword
  • Method CloudHsmClustersOperations.list_by_resource_group changed its parameter skiptoken from positional_or_keyword to keyword_only
  • Method CloudHsmClustersOperations.list_by_subscription changed its parameter skiptoken from positional_or_keyword to keyword_only
  • Method DedicatedHsmOperations.begin_update inserted a positional_or_keyword parameter parameters
  • Method DedicatedHsmOperations.begin_update deleted or renamed its parameter tags of kind positional_or_keyword

1.0.0b2 (2025-02-06)

Features Added

  • Client HardwareSecurityModulesMgmtClient added operation group cloud_hsm_cluster_backup_status
  • Client HardwareSecurityModulesMgmtClient added operation group cloud_hsm_cluster_restore_status
  • Model ApiEntityReference added property resource_id
  • Model CloudHsmClusterProperties added property activation_state
  • Model NetworkInterface added property resource_id
  • Model PrivateLinkResourceListResult added property next_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 CloudHsmClustersOperations added method begin_backup
  • Operation group CloudHsmClustersOperations added method begin_restore
  • Operation group CloudHsmClustersOperations added method begin_validate_backup_properties
  • Operation group CloudHsmClustersOperations added method begin_validate_restore_properties
  • Added operation group CloudHsmClusterBackupStatusOperations
  • Added operation group CloudHsmClusterRestoreStatusOperations

Breaking Changes

  • Model ApiEntityReference deleted or renamed its instance variable id
  • Model CloudHsmClusterPatchParameters deleted or renamed its instance variable sku
  • Model CloudHsmClusterPatchParameters deleted or renamed its instance variable properties
  • Model CloudHsmClusterProperties deleted or renamed its instance variable security_domain
  • Model CloudHsmClusterProperties deleted or renamed its instance variable restore_properties
  • Model CloudHsmClusterProperties deleted or renamed its instance variable backup_properties
  • Model NetworkInterface deleted or renamed its instance variable id
  • Parameter sku of model DedicatedHsm is 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_update deleted or renamed its parameter sku of kind positional_or_keyword
  • Method CloudHsmClustersOperations.begin_update deleted or renamed its parameter properties of kind positional_or_keyword

1.0.0b1 (2024-01-26)

  • Initial Release

Metadata

Release files for azure-mgmt-hardwaresecuritymodules 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azure-mgmt-hardwaresecuritymodules 1.0.0
File Size Uploaded
azure_mgmt_hardwaresecuritymodules-1.0.0.tar.gz 73.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for azure-mgmt-hardwaresecuritymodules 1.0.0
File Interpreter ABI Platform
azure_mgmt_hardwaresecuritymodules-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 153.6 kB

Release files / azure_mgmt_hardwaresecuritymodules-1.0.0.tar.gz

Download URL azure_mgmt_hardwaresecuritymodules-1.0.0.tar.gz
Size 73.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2d3a85bcd9242d56a3d6a9d6b5ab63b28fd33ca2cb7cfb9a2555ce7e553ee4b9
BLAKE2b-256 checksum
How to use checksums
8ee88a993bfd27521f4db46a3b9dd04f0f69c28db25a949e59d6c0e455a97c24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / azure_mgmt_hardwaresecuritymodules-1.0.0-py3-none-any.whl

Download URL azure_mgmt_hardwaresecuritymodules-1.0.0-py3-none-any.whl
Size 80.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a46f8b96f42ebfe04cb85e4b94a9f6810229ccc3086a059f8757ebe6cd16b96
BLAKE2b-256 checksum
How to use checksums
399a7aee9f0e05c28090a8725cd7d91eef7211df2a0c30fc90b4fcc69d7b9a09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page