The azure-iot-hub python package hasn't had any updates in last 2 years, and depends on deprecated azure-uamqp-python that is failing to build on systems such as Mac ARM and Linux ARM on Python 3.12+.
So, is there any alternative to replace it?
Reference: https://github.com/ansible-collections/azure/pull/1512
Edited: Currently I have no problem with that. I am looking for an alternative in case of possible removing of this package from Ansible collection.
The steps below outline how to set up Azure IoT Hub and manage devices using Azure CLI commands:
az login
az iot hub create --name <hub_name> --resource-group <resource_group_name> --sku S1
Create Device:
az iot hub device-identity create --hub-name <hub_name> --device-id <device_id>
List Devices:
az iot hub device-identity list --hub-name <hub_name>
az iot hub device-twin show --device-id <device_id> --hub-name <hub_name>
refer this documentation to get and update device twin properties using Azure CLI.
Update Device Twin:
az iot hub device-twin update --device-id
[--add]
[--auth-type {key, login}]
[--desired]
[--etag]
[--force-string]
[--hub-name]
[--login]
[--remove]
[--resource-group]
[--set]
[--tags]