What should you run first?

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

Answer: D

Explanation:

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

Latest AZ-220 Dumps Valid Version with 88 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments