Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Microsoft Azure SDK for Python

This is the Microsoft Azure Sovereign 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

Install the package

pip install azure-mgmt-sovereign
pip install azure-identity

Authentication

By default, Microsoft Entra 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.sovereign import SovereignMgmtClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = SovereignMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

Examples

Code samples for this package can be found at:

Troubleshooting

Exact compliance snapshots

Pass the evaluated_at value from a compliance dimension directly to SovereignViewComplianceResourceDetailsContent.evaluated_at to select that snapshot. The SDK preserves fractional digits beyond Python's microsecond precision during this round-trip, including timezone conversion, copying, and pickling. The value remains a datetime instance.

Do not rebuild the timestamp from its microsecond field or perform datetime arithmetic when using it as an exact snapshot identifier: standard Python datetime arithmetic and comparisons have microsecond precision. Explicitly replacing microsecond or formatting with an explicit timespec uses the requested Python precision rather than retaining extra fractional digits. An original RFC3339 timestamp can also be supplied in a dictionary request.

Awaited remediation results

For synchronous clients, call begin_remediate(...).result(). For asynchronous clients, await begin_remediate(...) and then await the returned poller's result(). The returned model exposes remediation_id for both an immediate response and a terminal ARM operation-status response. Pass this ID to remediation_result to retrieve generated bundles. Missing or invalid IDs raise DeserializationError; service polling failures remain errors.

These client fixes do not change the service's supported resource types, API version, PATCH/DELETE behavior, or subscription-list continuation behavior. In particular, subscription enumeration still surfaces a service-side paging error rather than silently returning an incomplete list.

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

Unreleased

Bugs Fixed

  • Preserve sub-microsecond precision when reusing compliance evaluation timestamps in typed snapshot requests.
  • Populate the awaited remediation result's remediation_id from terminal ARM operation-status responses in both synchronous and asynchronous clients.

1.0.0b1 (2026-11-03)

Other Changes

  • Initial version

Metadata

Release files for azure-mgmt-sovereign 1.0.0b1

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-sovereign 1.0.0b1
File Size Uploaded Provenance Actions
azure_mgmt_sovereign-1.0.0b1.tar.gz 94.6 kB Without provenance Details for azure_mgmt_sovereign-1.0.0b1.tar.gz

Built distribution (wheel)

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

Total release size: 188.3 kB

Release files / azure_mgmt_sovereign-1.0.0b1.tar.gz

Download URL azure_mgmt_sovereign-1.0.0b1.tar.gz
Size 94.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b29797ed2dc53aa4ce989c7942237f88d9828c1f103466f791f3a4b673ae86b0
BLAKE2b-256 checksum
How to use checksums
7dd711d87cc97350ddd17a91e376a474ca3713a9e39f48ed26dc3346af60978f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Release files / azure_mgmt_sovereign-1.0.0b1-py3-none-any.whl

Download URL azure_mgmt_sovereign-1.0.0b1-py3-none-any.whl
Size 93.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d6054ddaabb88004cd3e8067be311dbc6f861039ecdbfebc261b4d255d75b06
BLAKE2b-256 checksum
How to use checksums
a9e6a89bc42bd16bd899a45ae94e86842f65c1befbdb0d8c62d4565a419dffa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via RestSharp/106.13.0.0

Security for azure-mgmt-sovereign 1.0.0b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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