uamqp cannot be pre-installed
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az iot hub monitor-events Extension Name: azure-iot. Version: 0.9.6.
Errors: Dependency update (uamqp 1.2) required for IoT extension version: 0.9.6.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
/opt/az/bin/python3 -m pip install uamqp --target ~/.azure/cliextensions/azure-iotaz extension add -n azure-cli-iot-extaz iot hub monitor-events -n {} -t {}
Expected Behavior
Environment Summary
Linux-4.19.76-linuxkit-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB
azure-cli 2.8.0
azure-cli-ml 1.9.0
Extensions:
aks-preview 0.4.55
azure-cli-ml 1.9.0
azure-iot 0.9.6
Additional Context
az cli with associated extensions are being packaged in a docker image for use in restricted environments. This make it essential that we be able to install all dependencies before they're needed. The only supported means of installing uamqp in a manner that the iot extension will accept being when communication is attempted with iot hub means that this cannot be used in environments with restricted access.
Previously raised issue around this was closed https://github.com/Azure/azure-iot-cli-extension/issues/141. If not via python dependency management, some other explicit manner of installing required dependencies is required to make the iot extension usable in restricted environments.
We have added a step to manually enter the requisite config value in ~/.azure/config to get around this limitation, however a supported method of installing dependencies would be preferred.