Registry / azure / azure-mgmt-databoxedge

azure-mgmt-databoxedge

JSON →
library3.0.0pypypi✓ verified 22d ago

This package provides the Microsoft Azure Data Box Edge Management Client Library for Python, enabling users to programmatically manage Azure Data Box Edge resources. It supports Python 3.8+ and is part of the actively maintained Azure SDK for Python.

pip install azure-mgmt-databoxedge azure-identity
INSTALL
IMPORT
SIG · AZURE-MGMT-DATABOX
A
azure-mgmt-databoxedge
azurepythonv3.0.0
Install
3.9s avg
Import
647ms
Disk
45MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.0.0 · 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.674s · 45.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.9s · import 0.620s · 46MB
45MB installed
● package 45MB
Code
Verified usage

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

DataBoxEdgeManagementClient
from azure.mgmt.databoxedge import DataBoxEdgeManagementClient
DefaultAzureCredential
from azure.identity import DefaultAzureCredential
from msrestazure.azure_active_directory import AzureServicePrincipalCredentials
The credential system was completely revamped. Use azure-identity classes instead of old msrestazure or azure.common.credentials patterns.

Initializes the DataBoxEdgeManagementClient using `DefaultAzureCredential`. Ensure environment variables `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`, and `AZURE_SUBSCRIPTION_ID` are set for authentication.

import os from azure.identity import DefaultAzureCredential from azure.mgmt.databoxedge import DataBoxEdgeManagementClient # Set environment variables for authentication: # AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, AZURE_SUBSCRIPTION_ID subscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '') if not subscription_id: raise ValueError("AZURE_SUBSCRIPTION_ID environment variable is not set.") # Authenticate using DefaultAzureCredential credential = DefaultAzureCredential() # Create a client client = DataBoxEdgeManagementClient(credential, subscription_id) # Example: List Data Box Edge devices (this is a placeholder for actual operations) # Replace with actual resource group and device names as needed. # print(client.devices.list_by_subscription()) print("Azure Data Box Edge client initialized. You can now perform operations.")
Debug
Known issues
breakingThe credential system has been completely revamped in version 2.0.0. `azure.common.credentials` or `msrestazure.azure_active_directory` instances are no longer supported. The `credentials` parameter has been renamed to `credential`.
fix
Migrate to `azure-identity` classes (e.g., `DefaultAzureCredential`) and use the `credential` keyword argument.
affects: >=2.0.0
breakingOperations that previously returned `msrest.polling.LROPoller` now return `azure.core.polling.LROPoller` and are prefixed with `begin_`. The exception hierarchy has also been simplified; `CloudError` has been removed and most exceptions are now `azure.core.exceptions.HttpResponseError`.
fix
Adjust code to use `begin_` prefixed methods for long-running operations and handle `azure.core.exceptions.HttpResponseError` for general API errors.
affects: >=2.0.0
breakingVersion 2.0.0 removed subfolders of some unused API versions to reduce package size. If your application relies on a specific, non-latest API version that was removed, it may break.
fix
If encountering issues with specific API versions, consider pinning the `azure-mgmt-databoxedge` package to the previous major version (e.g., `1.0.0`) or update your code to use the latest API version.
affects: >=2.0.0
gotchaFor `DefaultAzureCredential` to work out-of-the-box, several environment variables are typically required for Azure Active Directory authentication (e.g., service principal details).
fix
Ensure `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET` (or other credential types) and `AZURE_SUBSCRIPTION_ID` are set in your environment.
affects: all
gotchaThe package requires Python 3.8 or newer. Using older Python versions will result in installation or runtime errors.
fix
Ensure your development and deployment environments are running Python 3.8 or a later compatible version.
affects: <3.8
Upgrade
Version history
3.0.0latest on PyPI · released Jul 14, 2026
Audit
Dependencies
azure-identityrequiredRequired for Azure Active Directory token authentication.
Agent activity
34 hits · last 30 days
node
29
OpenAI (training)
1
Resources