You have 10 IoT devices that connect to an Azure IoT hub named Hub1. From Azure Cloud Shell, you run az iot hub monitor-events –hub-name Hub1 and receive the following error message: "az iot hub: 'monitor-events' is not in the 'az iot hub' command group. See 'az iot hub –help'." You need to ensure that you can run the command successfully. What should you run first?

QuestionsCategory: AZ-220You have 10 IoT devices that connect to an Azure IoT hub named Hub1. From Azure Cloud Shell, you run az iot hub monitor-events –hub-name Hub1 and receive the following error message: "az iot hub: 'monitor-events' is not in the 'az iot hub' command group. See 'az iot hub –help'." You need to ensure that you can run the command successfully. What should you run first?
Admin Staff asked 4 months ago
You have 10 IoT devices that connect to an Azure IoT hub named Hub1.
From Azure Cloud Shell, you run az iot hub monitor-events --hub-name Hub1 and receive the following error message: "az iot hub: 'monitor-events' is not in the 'az iot hub' command group. See 'az iot hub --help'."
You need to ensure that you can run the command successfully.
What should you run first?

A. az iot hub monitor-feedback --hub-name Hub1

B. az iot hub generate-sas-token --hub-name Hub1

C. az iot hub configuration list --hub-name Hub1

D. az extension add -name azure-cli-iot-ext








 

Suggested Answer: 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

This question is in AZ-220 Microsoft Azure IoT Developer Exam
For getting Microsoft Certified: Azure IoT Developer Specialty Certificate





Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Microsoft. 
The website does not contain actual questions and answers from Microsoft's Certification Exams.
Trademarks, certification & product names are used for reference only and belong to Microsoft.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.