Azure / azure-iot-cli-extension

Azure IoT extension for Azure CLI
Other
82 stars 64 forks source link

doc: mention `iot hub query` in `iot hub device-twin list` help #700

Open Delapouite opened 1 month ago

Delapouite commented 1 month ago

Hi

While trying to query devices from the IoTHub registry my first attempt was to look for a az iot hub device-twin query command which does not exist.

Then, I stumbled upon az iot hub device-twin list which does a select * from devices by default. But looking at the auto-completion of this command I was a bit misled : it does indeed offer a --query flag, but it has nothing to do with the fact of querying devices. As discovered later in the --help output, it's a global flag also used by a lot of commands to filter the JSON output with JMESPath.

In the end, the command I was looking for is az iot hub query which was not very obvious as there's no mention of "devices" in its name.

So my hope with this PR is that it will avoid other users to waste time and more easily find the command they are looking for.

Thanks.


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.

Thank you for contributing to the IoT extension!

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

Intent for Production

Basic expectations

Azure IoT CLI maintainers reserve the right to enforce any of the outlined expectations.

A PR is considered ready for review when all basic expectations have been met (or do not apply).