Looking to install reduced size azure-cli on iot embedded linux device (so it takes less space on disk)

Viewed 35

We are trying to install azure-cli on an embedded linux device and after installation, the size of the azure-cli directory was 580MB and when the azure-iot extension was added , it is now at 613MB.

We are looking at reducing the amount of space that azure-iot is occupying since we have the native software that needs to be installed on device in addition to leaving space for o/s and other data and files. The application only takes 4M and azure-cli is taking a large chunk of space to stage the software.

Is it possible to install only core components needed to invoke a python sdk script that will be invoking libraries such as "from azure.iot.device import IoTHubDeviceClient, Message" ?

The current install was done with the following curl command below: "curl https://azurecliprod.blob.core.windows.net/install | bash"

1 Answers

Azure CLI has edge builds, however this is in it's dev branch and may not yet fully released. This is a good place to start. The deeper solution would be to fork the repository, shave off the features that you aren't going to use to make it as light as possible and then build that version. However, this may be extra work if the 'edge builds' is sufficiently light.

Related