Hub1という名前のAzure IoTハブに接続する10個のIoTデバイスがあります。 Azure Cloud Shellからaziot hub monitor-events --hub-name Hub1を実行すると、次のエラーメッセージが表示されます: "aziot hub: 'monitor-events' is not in the 'aziot hub' command group。see 'aziot hub - 助けて'。" コマンドを正常に実行できることを確認する必要があります。最初に何を実行する必要がありますか?
正解:D
Execute az extension add --name azure-cli-iot-ext once and try again. In order to read the telemetry from your hub by CLI, you have to enable IoT Extension with the following commands: Add: az extension add --name azure-cli-iot-ext Reference: https://github.com/MicrosoftDocs/azure-docs/issues/20843