Registry / azure / azure-common

azure-common

JSON →
library1.1.28pypypi✓ verified 25d ago

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.

pip install azure-common
INSTALL
IMPORT
SIG · AZURE-COMMON
A
azure-common
azurepythonv1.1.28
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.28 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AzureMissingResourceOrPropertyError
from azure.common import AzureMissingResourceOrPropertyError
from azure.common import AzureMissingResourceOrPropertyError

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}")
Debug
Known issues
breakingThe `azure-common` library is officially deprecated, and its support ended on March 31, 2023. It is strongly recommended to migrate to the newer Azure SDK client libraries which utilize `azure-core` and `azure-identity` for common functionalities, as older libraries will no longer receive official support and updates from Microsoft.
fix
Transition to modern Azure SDK packages. For common exceptions, use `azure.core.exceptions`. For authentication, use `azure-identity`. Consult Azure SDK migration guides for specific service clients.
affects: <=1.1.28
gotcha`azure-common` has implicit, undeclared dependencies on `msrest`, `msrestazure`, and `adal` for certain (now mostly deprecated) functionalities, such as `azure.common.client_factory`. Without these packages explicitly installed, attempting to use such features will result in `ImportError`s. Both `msrestazure` and `adal` are themselves deprecated.
fix
Avoid using functionalities that rely on these implicit dependencies. If absolutely necessary for legacy code, explicitly install `pip install msrest msrestazure adal` (but be aware these packages are also deprecated).
affects: <=1.1.28
deprecatedSpecific methods within `azure-common`, such as `azure.common.cloud.get_cli_active_cloud` and `azure.common.credentials.get_azure_cli_credentials`, are deprecated (explicitly in version 1.1.28) and are incompatible with `azure-cli-core` versions 2.21.0 and higher due to API changes in the CLI.
fix
For credential management, use `AzureCliCredential` from the `azure-identity` library (e.g., `from azure.identity import AzureCliCredential`).
affects: >=1.1.28
Upgrade
Version history
1.1.28latest on PyPI · released Feb 3, 2022
Audit
Dependencies
msrestoptionalImplicitly required for some older functionalities like client_factory. Not explicitly declared as a dependency in azure-common's setup.py. Avoid if possible.
msrestazureoptionalImplicitly required for some older functionalities like client_factory. It is also deprecated and not explicitly declared as a dependency in azure-common's setup.py. Avoid if possible.
adaloptionalImplicitly required for some older credential functionalities. It is also deprecated and not explicitly declared as a dependency in azure-common's setup.py. Avoid if possible.
Agent activity
46 hits · last 30 days
node
40
OpenAI (training)
1
Resources
azure-common — pip install azure-common · libregistry