This release is a pre-release and may not be stable for production use.
Azure Device Registry Software Update client library for Python
Azure Device Registry Software Update enables you to import and manage software updates and inspect device classes for IoT devices registered with Azure Device Registry.
Getting started
Install the package
python -m pip install azure-iot-deviceregistrysoftwareupdate
Prerequisites
- Python 3.10 or later is required to use this package.
- You need an Azure subscription to use this package.
- An existing Azure Device Registry Software Update instance and its endpoint hostname, such as
contoso.api.adu.microsoft.com.
Use with AI tools
AI coding tools such as VS Code and GitHub Copilot can help you write and debug code that uses this library. See Using the Azure SDK for Python with AI tools for available integrations.
Create with an Azure Active Directory Credential
To use an Azure Active Directory (AAD) token credential, provide an instance of the desired credential type obtained from the azure-identity library.
To authenticate with AAD, you must first pip install azure-identity
After setup, you can choose which type of credential from azure.identity to use. As an example, DefaultAzureCredential can be used to authenticate the client:
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
Use the returned token credential to authenticate the client:
>>> from azure.iot.deviceregistrysoftwareupdate import DeviceRegistrySoftwareUpdateClient
>>> from azure.identity import DefaultAzureCredential
>>> client = DeviceRegistrySoftwareUpdateClient(endpoint='<endpoint>', credential=DefaultAzureCredential())
Key concepts
The DeviceRegistrySoftwareUpdateClient provides access to two operation groups:
device_classesmanages device classes.software_updatemanages software updates and update files.
Examples
import os
from azure.core.exceptions import HttpResponseError
from azure.identity import DefaultAzureCredential
from azure.iot.deviceregistrysoftwareupdate import DeviceRegistrySoftwareUpdateClient
endpoint = os.environ["DEVICE_REGISTRY_SOFTWARE_UPDATE_ENDPOINT"]
try:
with DeviceRegistrySoftwareUpdateClient(
endpoint=endpoint,
credential=DefaultAzureCredential(),
) as client:
for device_class in client.device_classes.list():
print(device_class)
except HttpResponseError as error:
print(f"Service request failed: {error}")
Troubleshooting
Service operations raise exceptions defined in Azure Core.
Next steps
Explore the available client operations and models in the API reference.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Release History
1.0.0b1 (2026-08-21)
Other Changes
- Initial version
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_iot_deviceregistrysoftwareupdate-1.0.0b1.tar.gz.
File metadata
- Download URL: azure_iot_deviceregistrysoftwareupdate-1.0.0b1.tar.gz
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e68db7b4cf6fd0b1a9bb21bf223b69523b55217bc74cd636f7ebc52e989304f5
|
|
| MD5 |
cd5627ff15394941d4e5018ec6559c10
|
|
| BLAKE2b-256 |
3073a12397b67474766e5c2eb46970283022d126c36081264a7dc1ec196079c9
|
File details
Details for the file azure_iot_deviceregistrysoftwareupdate-1.0.0b1-py3-none-any.whl.
File metadata
- Download URL: azure_iot_deviceregistrysoftwareupdate-1.0.0b1-py3-none-any.whl
- Upload date:
- Size: 73.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6beaac749f422ed79498aea8637785c69970050957c560dd0a25986d48f6ad
|
|
| MD5 |
2656cfe847462590323c9ae9876f74f0
|
|
| BLAKE2b-256 |
366eb57ec40f9790dcb53370fccac05070af61dc49a41012dc3563eb32eb2b10
|