Azure Common

1.1.28 · deprecated · verified Sat Mar 28

The `azure-common` library served as a foundational package providing shared code, common exceptions, and configuration mechanisms across various older Azure SDK for Python libraries. While its latest release is 1.1.28 (February 2022), much of its functionality has been superseded by `azure-core` and `azure-identity` in the newer generation of Azure SDKs. It generally had a slow release cadence due to its foundational nature.

Warnings

Install

Imports

Quickstart

A minimal demonstration of importing and using an exception from `azure-common`. Given its deprecated status, this library is generally not recommended for new development.

from azure.common import AzureMissingResourceOrPropertyError

try:
    raise AzureMissingResourceOrPropertyError('Resource not found in legacy system.')
except AzureMissingResourceOrPropertyError as e:
    print(f"Caught expected legacy error: {e}")

# For new code, consider using azure-core exceptions, e.g.:
# from azure.core.exceptions import ResourceNotFoundError
# try:
#     raise ResourceNotFoundError('Resource not found in modern system.')
# except ResourceNotFoundError as e:
#     print(f"Caught modern error: {e}")

view raw JSON →